home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr12 / inter35a.zip / INTERRUP.B < prev    next >
Text File  |  1993-06-05  |  242KB  |  6,210 lines

  1. Interrupt List, part 2 of 9
  2. This compilation is Copyright (c) 1989,1990,1991,1992,1993 Ralf Brown
  3. --------t-15---------------------------------
  4. INT 15 - Microsoft TSR Specification
  5.     No additional information available at this time.
  6. --------B-1500-------------------------------
  7. INT 15 - CASSETTE - TURN ON TAPE DRIVE'S MOTOR (PC and PCjr only)
  8.     AH = 00h
  9. Return: CF set on error
  10.         AH = 86h no cassette present
  11.     CF clear if successful
  12. SeeAlso: AH=01h"CASSETTE"
  13. --------M-1500-------------------------------
  14. INT 15 - Amstrad PC1512 - GET AND RESET MOUSE COUNTS
  15.     AH = 00h
  16. Return: CX = signed X count
  17.     DX = signed Y count
  18. --------O-1500-------------------------------
  19. INT 15 - VMiX v2+ - INSTALLATION CHECK
  20.     AH = 00h
  21. Return: DX = 0798h if installed
  22.         AX = version (AH = major, AL = minor)
  23. --------T-1500-------------------------------
  24. INT 15 - MultiDOS Plus - GIVE UP TIME SLICE
  25.     AH = 00h
  26. Note:    if issued by the highest-priority task while MultiDOS is using
  27.       priority-based rather than round-robin scheduling, control will be
  28.       returned to the caller immediately
  29. SeeAlso: AH=03h"MultiDOS",AX=1000h
  30. --------B-1501-------------------------------
  31. INT 15 - CASSETTE - TURN OFF TAPE DRIVE'S MOTOR (PC and PCjr only)
  32.     AH = 01h
  33. Return: CF set on error
  34.         AH = 86h no cassette present
  35.     CF clear if successful
  36. SeeAlso: AH=00h"CASSETTE"
  37. --------b-1501-------------------------------
  38. INT 15 - Amstrad PC1512 - WRITE DATA TO NON-VOLATILE RAM
  39.     AH = 01h
  40.     AL = NVRAM location (00h to 3Fh)
  41.     BL = NVRAM data value
  42. Return: AH = return code
  43.         00h OK
  44.         01h address bad
  45.         02h write error
  46. SeeAlso: AH=02h"Amstrad"
  47.  
  48. Format of NVRAM:
  49. Offset    Size    Description
  50.  00h    BYTE    time of day: seconds
  51.  01h    BYTE    alarm time: seconds
  52.  02h    BYTE    time of day: minutes
  53.  03h    BYTE    alarm time: minutes
  54.  04h    BYTE    time of day: hours
  55.  05h    BYTE    alarm time: hours
  56.  06h    BYTE    day of week, 1 = Sunday
  57.  07h    BYTE    day of month
  58.  08h    BYTE    month
  59.  09h    BYTE    year mod 100
  60.  0Ah    BYTE    RTC status register A
  61.         bit 7: set if date/time being updated
  62.         bits 6-4: time base speed, default 010 = 32768 Hz
  63.         bits 3-0: interrupt rate selection, default 0110 = 1024 Hz
  64.  0Bh    BYTE    RTC status register B (see below)
  65.  0Ch    BYTE    RTC status register C (read-only)
  66.         bit 7: IRQF flag
  67.         bit 6: PF flag
  68.         bit 5: AF flag
  69.         bit 4: UF flag
  70.  0Dh    BYTE    RTC status register D
  71.         bit 7: battery good
  72.  0Eh  6 BYTEs    time and date machine last used
  73.  14h    BYTE    user RAM checksum
  74.  15h    WORD    Enter key scancode/ASCII code
  75.  17h    WORD    Forward delete key scancode/ASCII code
  76.  19h    WORD    Joystick fire button 1 scancode/ASCII code
  77.  1Bh    WORD    Joystick fire button 2 scancode/ASCII code
  78.  1Dh    WORD    mouse button 1 scancode/ASCII code
  79.  1Fh    WORD    mouse button 2 scancode/ASCII code
  80.  21h    BYTE    mouse X scaling factor
  81.  22h    BYTE    mouse Y scaling factor
  82.  23h    BYTE    initial VDU mode and drive count
  83.  24h    BYTE    initial VDU character attribute
  84.  25h    BYTE    size of RAM disk in 2K blocks
  85.  26h    BYTE    initial system UART setup byte
  86.  27h    BYTE    initial external UART setup byte
  87.  28h 24 BYTEs    available for user application
  88. Note:    bytes 00h-0Dh are the same on the IBM AT as they are used/updated by
  89.       the clock chip
  90.  
  91. Bitfields for RTC status register B:
  92.  bit 7    clear if normal update, set if abort update
  93.  bit 6    periodic interrupt enable
  94.  bit 5    alarm interrupt enable
  95.  bit 4    update end interrupt enable
  96.  bit 3    square wave enable
  97.  bit 2    date mode (clear = BCD, set = binary)
  98.  bit 1    24-hour format
  99.  bit 0    daylight saving time enable
  100. --------O-1501-------------------------------
  101. INT 15 - VMiX - "sys_chanreq" - I/O CHANNEL OBJECT MANAGER
  102.     AH = 01h
  103.     STACK:    WORD    object ID of requestor
  104.         DWORD    pointer to ASCIZ name of requested method
  105.             "assign" assign channel to object
  106.             "deassign" deassign channel
  107.             "cursor" set cursor on/off
  108.             "init" initialize comm port
  109.             "open" open I/O channel
  110.             "position" set cursor position
  111.             "receive" get buffered packet from comm port
  112.             "send" send buffered packet to comm port
  113.             "vio" set current virtual I/O to specified channel
  114.             "window" make window at cursor position
  115.         ---if "assign"---
  116.          WORD    object UID
  117.          WORD    caller UID/PID
  118.          DWORD    CSL with port
  119.         ---if "deassign"---
  120.          WORD    channel ID
  121.         ---if "cursor"---
  122.          WORD    channel ID (must be a SRCSINK)
  123.          WORD    new state (0000h off, 0001h on)
  124.         ---if "init"---
  125.          WORD    channel ID (must be a SRCSINK)
  126.          WORD    comm port number (00h-03h)
  127.          WORD    UART init code
  128.         ---if "open"---
  129.          WORD    channel ID
  130.         ---if "position"---
  131.          WORD    channel ID (must be a SRCSINK)
  132.          WORD    position (high byte = row, low byte = column)
  133.         ---if "receive"---
  134.          DWORD    pointer to buffer
  135.         ---if "send"---
  136.          WORD    length of buffer
  137.          DWORD    pointer to buffer
  138.         ---if "vio"---
  139.          WORD    channel ID (must be a SRCSINK)
  140.         ---if "window"---
  141.          WORD    top left (high byte = row, low byte = column)
  142.          WORD    bottom right (high byte = row, low byte = column)
  143. Return: DX:AX -> IRP structure or 0000h:0000h 
  144. SeeAlso: AH=00h"VMiX",AH=02h"VMiX"
  145. --------T-1501-------------------------------
  146. INT 15 - MultiDOS Plus - REQUEST RESOURCE SEMAPHORE
  147.     AH = 01h
  148.     AL = semaphore number (00h-3Fh)
  149. Return: AH = status
  150.         00h successful
  151.         02h invalid semaphore number
  152. Notes:    if the semaphore is not owned, ownership is assigned to the calling
  153.       task and the call returns immediately
  154.     if the semaphore is already owned by another task, the calling task
  155.       is placed on a queue for the semaphore and suspended until it can
  156.       become owner of the semaphore
  157.     semaphore 0 is used internally by MultiDOS to synchronize DOS access
  158. SeeAlso: AH=02h"MultiDOS",AH=10h"MultiDOS",AH=1Bh"MultiDOS"
  159. --------B-1502-------------------------------
  160. INT 15 - CASSETTE - READ DATA
  161.     AH = 02h
  162.     CX = number of bytes to read
  163.     ES:BX -> buffer
  164. Return:    CF clear if successful
  165.         DX = number of bytes read
  166.         ES:BX -> byte following last byte read
  167.     CF set on error
  168.     AH = status (see below)
  169. SeeAlso: AH=00h"CASSETTE",AH=03h"CASSETTE"
  170.  
  171. Values for status:
  172.  00h successful
  173.  01h CRC error
  174.  02h bad tape signals
  175.  04h no data
  176.  80h invalid command
  177.  86h no cassette present
  178. --------b-1502-------------------------------
  179. INT 15 - Amstrad PC1512 - READ DATA FROM NON-VOLATILE RAM
  180.     AH = 02h
  181.     AL = NVRAM location (00h to 3Fh)
  182. Return: AH = return code
  183.         00h OK
  184.         01h address bad
  185.         02h checksum error
  186.     AL = NVRAM data value
  187. SeeAlso: AH=01h"Amstrad"
  188. --------O-1502-------------------------------
  189. INT 15 - VMiX - "sys_memreq" - MEMORY OBJECT MANAGER
  190.     AH = 02h
  191.     STACK:    WORD    object ID of requestor
  192.         DWORD    pointer to ASCIZ name of requested method
  193.             "assign" allocate low memory block
  194.             "assign extended" allocate extended memory pages
  195.             "assign gdt" allocate GDT selector
  196.             "paged" allocate low paged memory
  197.             "paged extended" alllocate extended memory pages
  198.             "deassign" free memory block
  199.             "deassign gdt" free GDT selector
  200.             "getvpage" get physical address for virtual page
  201.             "setvpage" set physical address for virtual page
  202.             "info" get VMiX memory usage info block
  203.             "move" move contents of 32-bit memory
  204.             "newmcb" make new DOS memory control block
  205.             "owner" get process ID of MCB or PSP owner
  206.             "umb" allocate upper memory block
  207.             "video" toggle system use of vidoe memory and get stat
  208.         ---if "assign"---
  209.          WORD    number of objects
  210.          WORD    size in bytes (multiple of 512 bytes)
  211.         ---if "assign extended"---
  212.          WORD    number of objects
  213.          WORD    size in bytes (multiple of 4K)
  214.         ---if "assign gdt"---
  215.          WORD    access type (low byte)
  216.          WORD    segment size in paragraphs
  217.          DWORD    pointer to start of physical segment
  218.         ---if "paged"---
  219.          WORD    number of 512-byte pages
  220.         ---if "paged extended"
  221.          WORD    number of 4K pages
  222.         ---if "deassign"---
  223.          DWORD    pointer returned by previous allocation call
  224.         ---if "deassign gdt"---
  225.          WORD    GDT selector
  226.         ---if "getvpage"---
  227.          WORD    owner's process ID
  228.          DWORD    pointer to buffer for page structure (struct VPGE)
  229.         ---if "setvpage"---
  230.          WORD    owner's process ID
  231.          DWORD    pointer to new page structure (struct VPGE)
  232.         ---if "info"---
  233.          no additional arguments
  234.         ---if "move"
  235.          DWORD    32-bit source address
  236.          DWORD    32-bit destination address
  237.          WORD    number of words to move
  238.         ---if "newmcb"---
  239.          DWORD    pointer to new MCB's location
  240.          WORD    size of memory block
  241.          DWORD    pointer to ASCIZ name string (max 8 chars)
  242.         ---if "owner"---
  243.          WORD    MCB or PSP segment
  244.         ---if "umb"---
  245.          WORD    size in paragraphs
  246.         ---if "video"---
  247.          no additional arguments
  248. Return: DX:AX -> memory block or VPGE struct or 0000h:0000h
  249. SeeAlso: AH=00h"VMiX",AH=01h"VMiX"
  250. --------T-1502-------------------------------
  251. INT 15 - MultiDOS Plus - RELEASE RESOURCE SEMAPHORE
  252.     AH = 02h
  253.     AL = semaphore number (00h-3Fh)
  254. Return: AH = status
  255.         00h successful
  256.         01h not semaphore owner
  257.         02h invalid semaphore number
  258. Notes:    if any tasks are waiting for the semaphore, the first task on the wait
  259.       queue will become the new owner and be reawakened
  260.     do not use within an interrupt handler
  261. SeeAlso: AH=01h"MultiDOS",AH=10h"MultiDOS",AH=1Ch"MultiDOS"
  262. --------B-1503-------------------------------
  263. INT 15 - CASSETTE - WRITE DATA (PC and PCjr only)
  264.     AH = 03h
  265.     CX = number of bytes to write
  266.     ES:BX -> data buffer
  267. Return: CF clear if successful
  268.         ES:BX -> byte following last byte written
  269.     CF set on error
  270.     AH = status (see AH=02h"CASSETTE")
  271.     CX = 0000h
  272. SeeAlso: AH=00h"CASSETTE",AH=02h"CASSETTE"
  273. --------V-1503-------------------------------
  274. INT 15 - Amstrad PC1512 - WRITE VDU COLOR PLANE WRITE REGISTER
  275.     AH = 03h
  276.     AL = value (I,R,G,B bits)
  277. SeeAlso: AH=04h"Amstrad"
  278. --------O-1503-------------------------------
  279. INT 15 - VMiX - "sys_pinput" - PROMPTED CONSOLE INPUT
  280.     AH = 03h
  281.     STACK:    DWORD    pointer to ASCII prompt
  282.         WORD    field outline character
  283.         WORD    length of input field (max 7Fh)
  284.         DWORD    address of pointer to input buffer
  285. Return: AX = length of input (input buffer is padded with blanks)
  286. SeeAlso: AH=04h"VMiX"
  287. --------T-1503-------------------------------
  288. INT 15 - MultiDOS Plus - SUSPEND TASK FOR INTERVAL
  289.     AH = 03h
  290.     DX = number of time slices to remain suspended
  291. Return: after specified interval has elapsed
  292. Note:    when priority-based scheduling is in use, high-priority tasks should
  293.       use this function to yield the processor
  294. SeeAlso: AH=00h"MultiDOS",AH=0Ah"MultiDOS"
  295. --------B-1504-------------------------------
  296. INT 15 - SYSTEM - BUILD ABIOS SYSTEM PARAMETER TABLE (PS)
  297.     AH = 04h
  298.     ES:DI -> results buffer length 20h for System Parameter Table
  299.     DS = segment containing ABIOS RAM extensions (zero if none)
  300. Return: AH = 00h success: results at ES:DI
  301.     CF set on failure
  302. SeeAlso: AH=05h"ABIOS",C1h
  303.  
  304. Format of ABIOS System Parameter Table:
  305. Offset    Size    Description
  306.  00h    DWORD    FAR address of ABIOS Common Start Routine
  307.  04h    DWORD    FAR address of ABIOS Interrupt Routine
  308.  08h    DWORD    FAR address of ABIOS Time-out Routine
  309.  0Ch    WORD    number of bytes of stack required by this ABIOS implementation
  310.  0Eh 16 BYTEs    reserved
  311.  1Eh    WORD    number of entries in initialization table
  312. --------V-1504-------------------------------
  313. INT 15 - Amstrad PC1512 - WRITE VDU COLOR PLANE READ REGISTER
  314.     AH = 04h
  315.     AL = value (RDSEL1 and RDSEL0)
  316. SeeAlso: AH=03h"Amstrad",05h"Amstrad"
  317. --------O-1504-------------------------------
  318. INT 15 - VMiX - "sys_vprintf" - FORMATTED OUTPUT TO STREAM
  319.     AH = 04h
  320.     STACK:    DWORD    control string
  321.         DWORD    array of arguments
  322. SeeAlso: AH=03h"VMiX"
  323. --------T-1504-------------------------------
  324. INT 15 - MultiDOS Plus - SEND MESSAGE TO ANOTHER TASK
  325.     AH = 04h
  326.     AL = mailbox number (00h-3Fh)
  327.     CX = message length in bytes
  328.     DS:SI -> message
  329. Return: AH = status
  330.         00h successful
  331.         01h out of message memory
  332.         02h invalid mailbox number
  333. Note:    the message is copied into a system buffer; the caller may immediately
  334.       reuse its buffer
  335. SeeAlso: AH=05h"MultiDOS"
  336. --------B-1505-------------------------------
  337. INT 15 - SYSTEM - BUILD ABIOS INITIALIZATION TABLE (PS)
  338.     AH = 05h
  339.     ES:DI -> results buffer length (18h * Number_of_Entries)
  340.     DS = segment containing ABIOS RAM extensions (zero if none)
  341. Return: AH = 00h success: results at ES:DI
  342.     CF set on failure
  343. SeeAlso: AH=04h"ABIOS",C1h
  344.  
  345. Format of one entry of ABIOS Initialization Table:
  346. Offset    Size    Description
  347.  00h    WORD    device ID
  348.  02h    WORD    number of Logical IDs
  349.  04h    WORD    Device Block length (zero for ABIOS patch or extension)
  350.  06h    DWORD    -> init routine for Device Block and Function Transfer Table
  351.  0Ah    WORD    request block length
  352.  0Ch    WORD    Function Transfer Table length (zero for a patch)
  353.  0Eh    WORD    Data Pointers length (in Common Data Area)
  354.  10h    BYTE    secondary device ID (hardware level this ABIOS ver supports)
  355.  11h    BYTE    revision (device driver revision level this ABIOS supports)
  356.  12h  6 BYTEs    reserved
  357. --------V-1505-------------------------------
  358. INT 15 - Amstrad PC1512 - WRITE VDU GRAPHICS BORDER REGISTER
  359.     AH = 05h
  360.     AL = value (I,R,G,B bits)
  361. SeeAlso: AH=04h"Amstrad"
  362. --------O-1505-------------------------------
  363. INT 15 - VMiX - "sys_getpid" - GET PROCESS ID OF CURRENT PROCESS
  364.     AH = 05h
  365. Return: AX = process ID
  366. SeeAlso: AH=06h"VMiX",AH=0Bh"VMiX"
  367. --------T-1505-------------------------------
  368. INT 15 - MultiDOS Plus - CHECK MAILBOX
  369.     AH = 05h
  370.     AL = mailbox number (00h-3Fh)
  371. Return: AH = status
  372.         00h successful
  373.         DX = length of first message in queue, 0000h if no message
  374.         02h invalid mailbox number
  375. SeeAlso: AH=04h"MultiDOS",AH=06h"MultiDOS"
  376. --------b-1506-------------------------------
  377. INT 15 - Amstrad PC1512 - GET ROS VERSION NUMBER
  378.     AH = 06h
  379. Return: BX = version number
  380. --------O-1506-------------------------------
  381. INT 15 - VMiX - "sys_getpcb" - GET POINTER TO PROCESS CONTROL BLOCK
  382.     AH = 06h
  383.     STACK:    WORD    process ID
  384. Return: DX:AX -> process control block
  385. SeeAlso: AH=05h"VMiX",AH=07h"VMiX",AH=08h"VMiX"
  386. --------T-1506-------------------------------
  387. INT 15 - MultiDOS Plus - READ MAILBOX
  388.     AH = 06h
  389.     AL = mailbox number (00h-3Fh)
  390.     CX = size of buffer in bytes
  391.     ES:DI -> buffer for message
  392. Return: AH = status
  393.         00h successful
  394.         CX = number of bytes copied
  395.         DX = actual length of message
  396.         02h invalid mailbox number
  397. Note:    if the caller's buffer is not large enough, the message is truncated
  398.       and the remainder is lost
  399. SeeAlso: AH=04h"MultiDOS",AH=05h"MultiDOS"
  400. --------O-1507-------------------------------
  401. INT 15 - VMiX - "sys_getocb" - GET POINTER TO OBJECT CONTROL BLOCK
  402.     AH = 07h
  403.     STACK:    WORD    object type
  404. Return: DX:AX -> object control block
  405. SeeAlso: AH=06h"VMiX",AH=08h"VMiX"
  406. --------T-1507-------------------------------
  407. INT 15 - MultiDOS Plus - SPAWN INTERNAL TASK (CREATE NEW THREAD)
  408.     AH = 07h
  409.     BX:CX = entry point of new task
  410.     DX = stack size in paragraphs
  411. Return: AH = status
  412.         00h successful
  413.         01h no free task control blocks
  414.         02h no free memory for task's stack
  415. Note:    execution returns immediately to calling task
  416. SeeAlso: AH=08h"MultiDOS",AH=09h"MultiDOS",AH=13h"MultiDOS"
  417. --------O-1508-------------------------------
  418. INT 15 - VMiX - "sys_getccb" - GET CHANNEL CONTROL BLOCK
  419.     AH = 08h
  420.     STACK:    WORD    channel ID
  421. Return: DX:AX -> channel control block
  422. SeeAlso: AH=06h"VMiX",AH=07h"VMiX"
  423. --------T-1508-------------------------------
  424. INT 15 - MultiDOS Plus - TERMINATE INTERNAL TASK (KILL THREAD)
  425.     AH = 08h
  426. Return: calling task terminated, so execution never returns to caller
  427. Notes:    an internal task must be terminated with this function rather than a
  428.       DOS termination function
  429.     task's stack space is returned to parent task's memory pool
  430. SeeAlso: AH=07h"MultiDOS"
  431. --------O-1509-------------------------------
  432. INT 15 - VMiX - "sys_getqueue" - GET ID OF QUEUED ELEMENT
  433.     AH = 09h
  434.     STACK:    WORD    queue ID (0 = process queue, 1 = object, 3 = type)
  435.         WORD    subqueue ID
  436. Return: AX = queue ID
  437. SeeAlso: AH=0Ah"VMiX"
  438. --------T-1509-------------------------------
  439. INT 15 - MultiDOS Plus - CHANGE TASK'S PRIORITY
  440.     AH = 09h
  441.     AL = new priority
  442. Note:    the priority has different meanings depending on whether priority-
  443.       based or round-robin scheduling is used
  444. SeeAlso: AH=07h"MultiDOS"
  445. --------O-150A-------------------------------
  446. INT 15 - VMiX - "sys_qetqnext" - GET ID OF NEXT QUEUED ELEMENT
  447.     AH = 0Ah
  448.     STACK:    WORD    queue ID (0 = process queue, 1 = object, 3 = type)
  449.         WORD    ID of current element in queue chain
  450. Return: AX = ID of next element
  451. SeeAlso: AH=09h"VMiX",AH=0Fh"VMiX"
  452. --------T-150A-------------------------------
  453. INT 15 - MultiDOS Plus - CHANGE TIME SLICE INTERVAL
  454.     AH = 0Ah
  455.     AL = new interval
  456.         00h = 55.0 ms (default)
  457.         80h = 27.5 ms
  458.         40h = 13.75 ms
  459.         20h = 6.88 ms
  460.         10h = 3.44 ms
  461.         08h = 1.72 ms
  462. SeeAlso: AH=03h"MultiDOS"
  463. --------O-150B-------------------------------
  464. INT 15 - VMiX - "sys_sysreq" - SYSTEM CONFIGURATION MANAGER
  465.     AH = 0Bh
  466.     STACK:    WORD    caller's UID
  467.         DWORD    pointer to ASCIZ name of requested method
  468.             "abort" abort current send/receive on comm port
  469.             "block" start/end critical section
  470.             "close" terminate interrupt-drive comm I/O
  471.             "open" prepare comm port for interrupt-driven I/O
  472.             "delay" set delay timer and wait
  473.             "hibernate" put process to sleep
  474.             "ints" enable/disable interrupt-driven INT 14h
  475.             "length" get current send/receive buffer offsets
  476.             "kswitch" switch stacks
  477.             "numproc" get number of active processes
  478.             "protocol" set protocol function for comm interrupts
  479.             "relocate" set/reset VMiX flag for relocating to himem
  480.             "status" get current open comm port status
  481.             "wake" awaken a process
  482.             "xport" get comm port polled for logins
  483.         ---if "abort"---
  484.          no additional arguments
  485.         ---if "block"---
  486.          WORD    0000h end, 0001h start
  487.         ---if "close"---
  488.          no additional arguments
  489.         ---if "open"---
  490.          WORD    comm port (00h-03h)
  491.          WORD    BIOS parameter byte (see INT 14/AH=00h), except
  492.             bits 7-5 = 000 for 19200, 001 for 38400, 011 for 115200
  493.         ---if "delay"---
  494.          WORD    time in seconds
  495.         ---if "hibernate"---
  496.          WORD    process ID
  497.         ---if "ints"---
  498.          WORD    0000h if no, 0001h if yes
  499.         ---if "length","numproc","relocate","status","xport"---
  500.          no additional arguments
  501.         ---if "kswitch"---
  502.          DWORD    pointer to new stack
  503.         ---if "protocol"---
  504.          DWORD    pointer to function (must be in low "assign"ed memory
  505.             when in 386 mode)
  506.         ---if "wake"---
  507.          WORD    process ID
  508. Return: DX:AX -> result or 0000h:0000h
  509.         ---if "length"---
  510.          BYTE    receive offset
  511.          BYTE    send offset
  512.         ---if "kswitch"---
  513.          DWORD    old stack pointer
  514.         ---if "numproc"---
  515.          WORD    number of active processes
  516.         ---if "status"---
  517.          current open comm port status
  518.         ---if "xport"---
  519.          current comm port being polled for logins
  520. SeeAlso: AH=05h"VMiX",AH=0Eh"VMiX"
  521. --------T-150B-------------------------------
  522. INT 15 - MultiDOS Plus - FORCE DISPLAY OUTPUT TO PHYSICAL SCREEN MEMORY
  523.     AH = 0Bh
  524. Notes:    sets calling task's screen pointer to actual screen memory; the pointer
  525.       may be restored with AH=0Ch
  526.     caller's video mode must be same as foreground task's video mode
  527.     any text written while in the background will be saved to the
  528.       foreground task's virtual screen when it switches to the background
  529.     useful if a background task wants to display a message on the
  530.       foreground screen
  531. SeeAlso: AH=0Ch"MultiDOS"
  532. --------O-150C-------------------------------
  533. INT 15 - VMiX - "sys_getstack" - GET POINTER TO PROCESS TSS STACK
  534.     AH = 0Ch
  535.     STACK:    WORD    process ID
  536. Return: DX:AX -> TSS stack store
  537. SeeAlso: AH=00"VMiX"
  538. --------T-150C-------------------------------
  539. INT 15 - MultiDOS Plus - RESTORE OLD VIDEO DISPLAY MEMORY
  540.     AH = 0Ch
  541. Note:    restores task's screen pointer saved by AH=0Bh; must not be called
  542.       unless AH=0Bh has been called first
  543. SeeAlso: AH=0Bh"MultiDOS"
  544. --------O-150D-------------------------------
  545. INT 15 - VMiX - "sys_spawn" - START A CHILD PROCESS JOB SHELL
  546.     AH = 0Dh
  547.     STACK:    DWORD    ASCIZ string starting with requested I/O channel and
  548.             followed by standard VMiX shell command string
  549. Return: AX = process ID or error code "SYS_ERROR"
  550. Note:    the maximum string length is 7Fh characters
  551. SeeAlso: AH=0Eh"VMIX",AH=11h"VMiX",INT 21/AH=4Bh
  552. --------T-150D-------------------------------
  553. INT 15 - MultiDOS Plus - DISABLE MULTITASKING
  554.     AH = 0Dh
  555. Note:    calling task receives all time slices until AH=0Eh is called; this
  556.       allows time-critical events or nonreentrant code to be processed
  557. SeeAlso: AH=0Eh"MultiDOS",AH=10h"MultiDOS",AX=101Bh,AH=20h"MultiDOS"
  558. --------O-150E-------------------------------
  559. INT 15 - VMiX - "sys_kill" - HARD TERMINATE PROCESS
  560.     AH = 0Eh
  561.     STACK:    WORD    process ID
  562. Return: AX = status (SYS_OK or SYS_ERROR)
  563. SeeAlso: AH=0Bh"VMiX",AH=0Dh"VMIX"
  564. --------T-150E-------------------------------
  565. INT 15 - MultiDOS Plus - ENABLE MULTITASKING
  566.     AH = 0Eh
  567. SeeAlso: AH=0Dh"MultiDOS",AX=101Ch,AH=20h"MultiDOS"
  568. --------d-150F-------------------------------
  569. INT 15 C - SYSTEM - FORMAT UNIT PERIODIC INTERRUPT (PS ESDI drives only)
  570.     AH = 0Fh
  571.     AL = phase code
  572.         00h reserved
  573.         01h surface analysis
  574.         02h formatting
  575. Return: CF clear if formatting should continue, set if it should terminate
  576. Note:    called during ESDI drive formatting after each cylinder is completed
  577. SeeAlso: INT 13/AH=1Ah
  578. --------O-150F-------------------------------
  579. INT 15 - VMiX - "sys_getqkey" - GET KEY FIELD OF QUEUED ELEMENT
  580.     AH = 0Fh
  581.     STACK:    WORD    queue ID (0 = process queue, 1 = object q, 3 = type q)
  582.         WORD    ID of element in queue chain
  583. Return: AX = key
  584. SeeAlso: AH=0Ah"VMiX"
  585. --------T-150F-------------------------------
  586. INT 15 - MultiDOS Plus - EXECUTE A MULTIDOS PLUS COMMAND
  587.     AH = 0Fh
  588.     DS:BX -> ASCIZ command
  589. Return: after command has been processed
  590. Notes:    specified string is executed as if it had been typed at the MultiDOS
  591.       command prompt
  592.     the task is placed on a queue which MultiDOS examines periodically and
  593.       is suspended until MultiDOS has processed the command
  594.     all lowercase characters up to the first blank are converted to upper
  595.       case within the given buffer
  596. --------O-1510-------------------------------
  597. INT 15 - VMiX - "sys_virtual" - EXECUTE CONFORMING FUNCTION IN PROTECTED MODE
  598.     AH = 10h
  599.     STACK:    DWORD    pointer to function
  600.           N    WORDs    function args
  601. Return: AX = function's return value??? (not specified in documentation)
  602. Note:    while the function is executing, the following global descriptors are
  603.       available:
  604.         20h stack segment
  605.         38h code segment of function
  606.         40h data alias for function's code segment
  607.       additional GDT descriptors can be allocated using AH=02h with
  608.       function "assign gdt"
  609. SeeAlso: AH=02h"VMiX",AH=51h"VMiX"
  610. --------T-1510-------------------------------
  611. INT 15 - MultiDOS Plus - TEST RESOURCE SEMAPHORE
  612.     AH = 10h
  613.     AL = semaphore number (00h-3Fh)
  614. Return: AH = status
  615.         00h semaphore not in use
  616.         01h semaphore owned by another task
  617.         02h invalid semaphore number
  618.         03h semaphore owned by caller
  619. SeeAlso: AH=02h"MultiDOS",AH=0Dh"MultiDOS",AH=1Dh"MultiDOS"
  620. --------Q-151000-----------------------------
  621. INT 15 - TopView - "PAUSE" - GIVE UP CPU TIME
  622.     AX = 1000h
  623. Return: after other processes run
  624. Note:    under DESQview, if the process issuing this call has hooked INT 08h,
  625.       the current time-slice is set to expire at the next clock tick rather
  626.       than immediately
  627. SeeAlso: AH=00h"MultiDOS",AX=5305h,INT 21/AH=89h,INT 21/AH=EEh"DoubleDOS"
  628. SeeAlso: INT 2F/AX=1680h,INT 60/DI=0106h,INT 62/AH=01h,INT 7A/BX=000Ah
  629. SeeAlso: INT 7F/AH=E8h
  630. --------Q-151001-----------------------------
  631. INT 15 - TopView - "GETMEM" - ALLOCATE "SYSTEM" MEMORY
  632.     AX = 1001h
  633.     BX = number of bytes to allocate
  634. Return: ES:DI -> block of memory or 0000h:0000h (DV v2.26+)
  635.     AX = status (DV v2.42)
  636.         0000h successful
  637.         0001h failed
  638. Note:    use SETERROR (AX=DE15h) to avoid a user prompt if there is insufficient
  639.       common memory.  Under DV v2.42, this call never generates a user
  640.       prompt regardless of the SETERROR value; instead, it always returns
  641.       AX=0001h and ES:DI=0000h:0000h if out of memory
  642. SeeAlso: AX=1002h,AX=102Eh,AX=DE0Ch,AX=DE15h
  643. --------Q-151002-----------------------------
  644. INT 15 - TopView - "PUTMEM" - DEALLOCATE "SYSTEM" MEMORY
  645.     AX = 1002h
  646.     ES:DI -> previously allocated block
  647. Return: block freed
  648. SeeAlso: AX=1001h,AX=DE0Dh
  649. --------Q-151003-----------------------------
  650. INT 15 - TopView - "PRINTC" - DISPLAY CHARACTER/ATTRIBUTE ON SCREEN
  651.     AX = 1003h
  652.     BH = attribute
  653.     BL = character
  654.     DX = segment of object handle for window
  655. Note:    BX=0 does not display anything, it only positions the hardware cursor
  656. --------Q-1510-------------------------------
  657. INT 15 - TopView - UNIMPLEMENTED IN DV 2.x
  658.     AH = 10h
  659.     AL = 04h thru 12h
  660. Return: pops up "Programming error" window in DV 2.x
  661. --------Q-151013-----------------------------
  662. INT 15 - TopView - "GETBIT" - DEFINE A 2ND-LEVEL INTERRUPT HANDLER
  663.     AX = 1013h
  664.     ES:DI -> FAR service routine
  665. Return: BX = bit mask indicating which bit was allocated
  666.          0000h if no more bits available
  667. SeeAlso: AX=1014h,AX=1015h
  668. Note:    only a few TopView/DESQview API calls are allowed during a hardware
  669.       interrupt; if other calls need to be made, the interrupt handler
  670.       must schedule a 2nd-level interrupt with "SETBIT" (AX=1015h)
  671. --------Q-151014-----------------------------
  672. INT 15 - TopView - "FREEBIT" - UNDEFINE A 2ND-LEVEL INTERRUPT HANDLER
  673.     AX = 1014h
  674.     BX = bit mask from INT 15/AX=1013h
  675. SeeAlso: AX=1013h,AX=1015h
  676. --------Q-151015-----------------------------
  677. INT 15 - TopView - "SETBIT" - SCHEDULE ONE OR MORE 2ND-LEVEL INTERRUPTS
  678.     AX = 1015h
  679.     BX = bit mask for interrupts to post
  680. Return: indicated routines will be called: (DV 2.0x) at next task switch
  681.                        (DV 2.2x) immediately on return from
  682.                              hardware interrupt
  683. SeeAlso: AX=1013h,AX=1014h
  684. Notes:    this is one of the few TopView calls which are allowed from a hardware
  685.       interrupt handler
  686.     the handler will be called with ES containing the segment of the handle
  687.       of the next task to be executed; on return, ES must be the segment of
  688.       a task handle
  689. --------Q-151016-----------------------------
  690. INT 15 - TopView - "ISOBJ" - VERIFY OBJECT HANDLE
  691.     AX = 1016h
  692.     ES:DI = possible object handle
  693. Return: BX = FFFFh if ES:DI is a valid object handle
  694.          0000h if ES:DI is not
  695. Note:    under DESQview versions prior to 2.50, an object handle is always a
  696.       pointer to the object; for versions 2.50 and up, only task handles
  697.       are always pointers (other handles may consist of a unique object
  698.       number and offset into DESQview's common memory)
  699. SeeAlso: AX=DE14h,AX=DE2Bh,AX=DE2Ch
  700.  
  701. Format of object:
  702. Offset    Size    Description
  703.  00h    WORD    offset in common memory of previous object of same type
  704.  02h    WORD    offset in common memory of next object of same type
  705.  04h    WORD    signature FEDCh (DV 2.42-)
  706.         signature FEDCh or object number (DV 2.50+)
  707.  06h    WORD    object type
  708.         00h window/task
  709.         01h mailbox
  710.         02h keyboard
  711.         03h timer
  712.         04h pointer
  713.         05h panel
  714.         06h objectq
  715.  08h    DWORD    object handle to return to caller
  716.  0Ch    DWORD    canonicalized object address (segment = common memory)
  717.  10h    WORD    offset in common memory of owning task
  718.  12h    WORD    mapping context
  719.          offset in common memory of mapping context record (see below)
  720.     remainder varies by object type and DESQview version
  721. ---v2.42 keyboard object---
  722.  14h    WORD    flag bits (see also AH=12h/BH=0Ah"OBJECT")
  723.         bit 15: keyboard opened
  724.  16h  4 BYTEs    ???
  725.  1Ah    WORD    priority in OBJECTQ???
  726.  1Ch    ...
  727.  25h    WORD    offset in common memory of ??? task
  728.  27h  4 BYTEs    ???
  729. ---v2.42 objectq object---
  730.  14h    WORD    flag bits (see also AH=12h/BH=0Ah"OBJECT")
  731.         bit 15: OBJECTQ opened
  732.  16h  2 BYTEs    ???
  733.  18h    WORD    offset in common memory of ??? task
  734.  1Ah  6 BYTEs    ???
  735. ---v2.42 mailbox object---
  736.  14h    WORD    flag bits (see also AH=12h/BH=0Ah"OBJECT")
  737.         bit 15: mailbox opened
  738.  1Ah    WORD    priority in OBJECTQ???
  739.  1Ch  6 BYTEs    ???
  740.  22h    WORD    offset in common memory of mailbox name (counted string)
  741.         0000h if no name
  742.      <= 5 BYTEs    ???
  743. ---v2.22-2.42 window/task object---
  744.  14h    BYTE    00h window, 01h task
  745.  15h    BYTE    internal (not Switch menu) window number???
  746.  16h    BYTE    internal (not Switch menu) window number???
  747.  17h    WORD    segment of internal window record
  748.  19h  2 BYTEs    ???
  749.  1Bh    BYTE    cursor row
  750.  1Ch    BYTE    cursor column
  751.  1Dh  2 BYTEs    ???
  752.  1Fh    BYTE    window height (logical)
  753.  20h    BYTE    window width (logical)
  754.  21h    BYTE    window position, row
  755.  22h    BYTE    window position, column
  756.  23h    BYTE    window height (visible)
  757.  24h    BYTE    window width (visible)
  758.  25h    BYTE    row of top of frame (or window if unframed)
  759.  26h    BYTE    column of left of frame (or window if unframed)
  760.  27h    BYTE    window height (physical, including frame)
  761.  28h    BYTE    window width (physical, including frame)
  762.  29h  6 BYTEs    ???
  763.  2Fh    BYTE    ??? initially logical window height
  764.  30h    BYTE    ??? initially logical window width
  765.  31h  2 BYTEs    ???
  766.  33h    BYTE    minimum height of window
  767.  34h    BYTE    minimum width of window
  768.  35h    BYTE    maximum height of window
  769.  36h    BYTE    maximum width of window
  770.  37h  3 BYTEs    ???
  771.  3Ah  8 BYTEs    window frame characters: ul,ur,ll,lr,t,b,l,r
  772.  42h 24 BYTEs    attributes???
  773.  5Ah  8 BYTEs    window frame characters: ul,ur,ll,lr,t,b,l,r
  774.  62h  3 BYTEs    ???
  775.  65h    BYTE    ??? bitflags
  776.  66h  2 BYTEs    ???
  777.  68h    WORD    offset in common memory of window name or 0000h if untitled
  778.  6Ah    WORD    length of window name
  779.  6Ch  2 BYTEs    ???
  780.  6Eh    WORD    offset of logical cursor in window (in character cells)
  781.  70h    DWORD    pointer to field table for window
  782.  74h    BYTE    ???
  783.  75h  2    BYTEs    ???
  784.  77h    BYTE    number of last-visited field
  785.  78h    DWORD    pointer to field table entry for last-visited field
  786.  7Ch  3 BYTEs    ???
  787.  7Fh    BYTE    select field marker character
  788.  80h    BYTE    ??? bit flags
  789.         bit 0: allow ECh window stream opcode to change reverse logattr
  790.         bit 1: alternate field processing mode selected
  791.  81h    BYTE    ???
  792.  82h    DWORD    notification function (manager stream opcode 8Ah)
  793.         no notification if segment = 0000h
  794.  86h    DWORD    notification argument (manager stream opcode 8Bh)
  795.  8Ah    WORD    offset in common memory of ??? window object or 0000h
  796.  8Ch    WORD    offset in common memory of ??? window object or 0000h
  797.  8Eh    WORD    offset in common memory of ??? window object or 0000h
  798.  90h      BYTE    ??? bitflags
  799.  91h    BYTE    ???
  800.  ---task object only
  801.  92h    BYTE    bit flags (bits 0-4)
  802.  93h    BYTE    character for ??? (default 20h)
  803.  94h    BYTE    ??? flag
  804.  95h    WORD    offset in common memory of ???
  805.  97h  2 BYTEs    ???
  806.  99h    WORD    ???
  807.  9Bh    BYTE    ??? bit flags
  808.         bit 3: ???
  809.         bit 6: perform protected-attribute processing on select fields
  810.  9Ch    BYTE    ???
  811.  9Dh    WORD    offset in common memory of current register save record
  812.         (see below).  No register save record in use if < 01C0h
  813.  9Fh    WORD    offset in common memory of task's keyboard object
  814.  A1h    WORD    offset in common memory of task's OBJECTQ object
  815.  A3h    WORD    offset in common memory of task's mailbox object
  816.  A5h    WORD    semaphore: FFFFh if on user stack, else on task's private stack
  817.  A7h    DWORD    user's SS:SP
  818.  ABh    WORD    task's private SP (SS read from offset 0Ah)
  819.  ADh  6 BYTEs    ???
  820.  B3h    BYTE    ??? bit flags
  821.         bit 0: run in foreground only
  822.  B4h    BYTE    ???
  823.  B5h    BYTE    ??? bitflags
  824.  B6h    BYTE    task status (see AX=DE2Ch)
  825.  B7h  9 BYTEs    ???
  826.  C0h    WORD    head pointer for keyboard buffer (wraps back to 00h after 80h)
  827.  C2h    WORD    tail pointer for keyboard buffer (wraps back to 00h after 80h)
  828.  C4h  2 BYTEs    ??? (0000h)
  829.  C6h    WORD    segment of keyboard buffer for task
  830.  C8h    WORD    offset in common memory of ??? keyboard object
  831.  CAh    BYTE    ???
  832.  CBh    WORD    offset in common memory of ??? object
  833.  CEh    BYTE    ??? flag
  834.  CFh    WORD    offset in common memory of default notify window for task
  835.         or 0000h if none
  836.  D1h  4 BYTEs    ???
  837.  D5h    BYTE    window number on Switch Window menu
  838.  D6h  5 BYTEs    ???
  839.  DBh    WORD    offset in common memory of ??? object
  840.  DDh  2 BYTEs    ???
  841.  DFh    WORD    API level for task
  842.  E1h    WORD    offset in common memory of ??? keyboard object
  843.  E7h    WORD    segment of ???
  844.  E9h 18 BYTEs    ???
  845.  FBh    WORD    ???
  846.  FDh    BYTE    ???
  847.  FFh 26 BYTEs    ???
  848. 119h    DWORD    SS:SP for ???
  849. 11Dh  4 BYTEs    ???
  850. 121h    DWORD    pointer to ???
  851. 125h 35 BYTEs    ???
  852. ---v2.22
  853. 145h        task's default keyboard object
  854. ---v2.42
  855. 148h    WORD    ???
  856. 14Ah    BYTE    ???
  857. 14Dh 42 BYTEs    task's default keyboard object
  858. 177h 32 BYTEs    task's ObjectQ object
  859. 197h 41 BYTEs    task's default mailbox object
  860. 1C0h 24 BYTEs    first register save record
  861. 450h    --    default top of private stack
  862.  
  863. Format of Register Save Record:
  864. Offset    Size    Description
  865.  00h    WORD    AX
  866.  02h    WORD    BX
  867.  04h    WORD    CX
  868.  06h    WORD    DX
  869.  08h    WORD    DI
  870.  0Ah    WORD    SI
  871.  0Eh    WORD    DS
  872.  10h    WORD    ES
  873.  12h    DWORD    return address
  874.  16h    WORD    original flags
  875.  
  876. Format of mapping context record:
  877. Offset    Size    Description
  878.  00h    WORD    segment of start of system memory chain
  879.  02h    WORD    size of process's memory in paragraphs
  880.  04h 15 BYTEs    ???
  881.  13h    BYTE    reference count
  882. --------Q-151017-----------------------------
  883. INT 15 - TopView - UNIMPLEMENTED IN DV 2.x
  884.     AX = 1017h
  885. Return: pops up "Programming error" window in DV 2.x
  886. --------Q-151018-----------------------------
  887. INT 15 - TopView - "LOCATE" - FIND WINDOW AT A GIVEN SCREEN LOCATION
  888.     AX = 1018h
  889.     BH = column
  890.     BL = row
  891.     ES = segment of object handle for window below which to search
  892.          0000h = start search with topmost window
  893. Return: ES = segment of object handle for window which is visible at the
  894.            indicated position, or covered by indicated window
  895.        = 0000h no window
  896. SeeAlso: AX=1023h,AX=1024h
  897. --------Q-151019-----------------------------
  898. INT 15 - TopView - "SOUND" - MAKE TONE
  899.     AX = 1019h
  900.     BX = frequency in Hertz (0000h = silence)
  901.     CX = duration in clock ticks (18.2 ticks/sec)
  902. Return: immediately, tone continues to completion
  903. Notes:    if another tone is already playing, the new tone does not start until
  904.       completion of the previous one.  Up to 32 tones may be queued before
  905.       the process is blocked until a note completes.
  906.     in DV 2.00, the lowest tone allowed is 20 Hz
  907.     if CX = 0, the current note is cancelled; if BX = 0 as well, all queued
  908.       notes are also cancelled
  909. SeeAlso: INT 16/AH=73h
  910. --------Q-15101A-----------------------------
  911. INT 15 - TopView - "OSTACK" - SWITCH TO TASK'S INTERNAL STACK
  912.     AX = 101Ah
  913. Return: stack switched
  914. Notes:    this call may not be nested; a second call must be preceded by a call
  915.       to "USTACK" (AX=1025h)
  916.     while TopView requires many API calls to be executed while on the
  917.       task's internal stack, DESQview allows those calls to be executed
  918.       regardless of the current stack
  919. SeeAlso: AX=1025h
  920. --------Q-15101B-----------------------------
  921. INT 15 - TopView - "BEGINC" - BEGIN CRITICAL REGION
  922.     AX = 101Bh
  923. Return: task-switching temporarily disabled
  924. Notes:    will not task-switch until "ENDC" (AX = 101Ch) called unless task
  925.       voluntarily releases the CPU (upon regaining the CPU, task-switching
  926.       will again be disabled)
  927.     suspends the caller until DOS is free
  928. SeeAlso: AH=0Dh"MultiDOS",AX=101Ch,AX=DE13h,AX=DE1Ch,INT 2F/AX=1681h
  929. SeeAlso: INT 60/DI=0602h
  930. --------Q-15101C-----------------------------
  931. INT 15 - TopView - "ENDC" - END CRITICAL REGION
  932.     AX = 101Ch
  933. Return: task-switching enabled
  934. Note:    this API call may be made from within a hardware interrupt handler
  935. SeeAlso: AX=101Bh,AX=DE13h,AX=DE1Bh,INT 2F/AX=1682h,INT 60/DI=0603h
  936. --------Q-15101D-----------------------------
  937. INT 15 - TopView - "STOP" - STOP TASK
  938.     AX = 101Dh
  939.     ES = segment of object handle for task to be stopped
  940.          (== handle of main window for that task)
  941. Return: indicated task will not get any CPU time until restarted with AX=101Eh
  942. Note:    once a task has been stopped, additional "STOP"s are ignored
  943. BUG:    in DV 2.00, this function is ignored unless the indicated task is the
  944.       current task
  945. SeeAlso: AX=101Eh,AX=102Bh,AH=12h"VMiX",INT 21/AH=81h
  946. --------Q-15101E-----------------------------
  947. INT 15 - TopView - "START" - START TASK
  948.     AX = 101Eh
  949.     ES = segment of object handle for task to be started
  950.          (== handle of main window for that task)
  951. Return: indicated task is started up again
  952. Note:    once a task has been started, additional "START"s are ignored
  953. SeeAlso: AX=101Dh,AX=102Bh,INT 21/AH=82h
  954. --------Q-15101F-----------------------------
  955. INT 15 - TopView - "DISPEROR" - POP-UP ERROR WINDOW
  956.     AX = 101Fh
  957.     BX = bit fields
  958.          bits 0-12: number of characters to display
  959.          bits 13,14: which mouse button may be pressed to remove window
  960.              00 = either
  961.              01 = left
  962.              10 = right
  963.              11 = either
  964.          bit 15: beep if 1
  965.     ES:DI -> text of message
  966.     CH = width of error window (0 = default)
  967.     CL = height of error window (0 = default)
  968.     DX = segment of object handle
  969. Return: BX = status: 1 = left button, 2 = right, 27 = ESC pressed
  970. Note:    window remains on-screen until ESC or indicated mouse button is pressed
  971. --------Q-151020-----------------------------
  972. INT 15 - TopView - UNIMPLEMENTED IN DV v2.00+
  973.     AX = 1020h
  974. Return: pops up "Programming error" window in DV v2.00+
  975. --------Q-151021-----------------------------
  976. INT 15 - TopView - "PGMINT" - INTERRUPT ANOTHER TASK
  977.     AX = 1021h
  978.     BX = segment of object handle for task to interrupt (not self)
  979.     DX:CX -> FAR routine to jump to next time task is run
  980. Return: nothing
  981. Notes:    the FAR routine is entered with the current ES, DS, SI, DI, and BP
  982.       values, using the task's internal stack (see AX=101Ah); only SS:SP
  983.       needs to be preserved
  984.     multiple PGMINTs to a single task are processed last-in first-out
  985.     if the other task is in a DOS or DV API call, the interruption will
  986.       occur on return from that call
  987. --------Q-151022BX0000-----------------------
  988. INT 15 - TopView - "GETVER" - GET VERSION
  989.     AX = 1022h
  990.     BX = 0000h
  991. Return: BX nonzero, TopView or compatible loaded
  992.     (BL = major version, BH = minor version)
  993. Notes:    TaskView returns BX = 0001h, DESQview v2.00+ returns BX = 0A01h
  994. --------Q-151023-----------------------------
  995. INT 15 - TopView - "POSWIN" - POSITION WINDOW
  996.     AX = 1023h
  997.     BX = segment of object handle for parent window within which to
  998.          position the window (0 = full screen)
  999.     ES = segment of object handle for window to be positioned
  1000.     DL = bit flags
  1001.          bits 0,1: horizontal position
  1002.         00 = current
  1003.         01 = center
  1004.         10 = left
  1005.         11 = right
  1006.          bits 2,3: vertical position
  1007.         00 = current
  1008.         01 = center
  1009.         10 = top
  1010.         11 = bottom
  1011.          bit 4: don't redraw screen if set
  1012.          bits 5-7 not used
  1013.     CH = number of columns to offset from position specified by DL
  1014.     CL = number of rows to offset from position specified by DL
  1015. Return: nothing
  1016. --------Q-151024-----------------------------
  1017. INT 15 - TopView - "GETBUF" - GET VIRTUAL SCREEN INFO
  1018.     AX = 1024h
  1019.     BX = segment of object handle for window
  1020.           (0 = use default)
  1021. Return: ES:DI -> virtual screen
  1022.     CX = size of virtual screen in bytes
  1023.     DL = 00h text screen
  1024.          01h graphics screen
  1025. SeeAlso: INT 10/AH=FEh,INT 21/AH=2Bh/CX=4445h
  1026. --------Q-151025-----------------------------
  1027. INT 15 - TopView - "USTACK" - SWITCH BACK TO USER'S STACK
  1028.     AX = 1025h
  1029. Return: stack switched back
  1030. Notes:    call only after having switched to internal stack with AX=101Ah
  1031.     while TopView requires many API calls to be executed while on the
  1032.       task's private stack, DESQview allows those calls to be executed
  1033.       regardless of the current stack
  1034. SeeAlso: AX=101Ah
  1035. --------Q-1510-------------------------------
  1036. INT 15 - DESQview (TopView???) - UNIMPLEMENTED IN DV 2.x
  1037.     AH = 10h
  1038.     AL = 26h thru 2Ah
  1039. Return: pops up "Programming error" window in DV 2.x
  1040. --------Q-15102B-----------------------------
  1041. INT 15 - DESQview v2.00+ (TopView???) - "POSTTASK" - AWAKEN TASK
  1042.     AX = 102Bh
  1043.     BX = segment of object handle for task
  1044. Return: nothing
  1045. Note:    forces a task which is waiting on its objectq to continue by placing
  1046.       the handle for the task on the objectq
  1047. SeeAlso: AX=101Dh,AX=101Eh,INT 21/AH=82h
  1048. --------Q-15102C-----------------------------
  1049. INT 15 - DESQview v2.00+ - "NEWPROC" - START NEW APPLICATION IN NEW PROCESS
  1050.     AX = 102Ch
  1051.     ES:DI -> contents of .PIF/.DVP file (see below)
  1052.     BX = size of .PIF/.DVP info
  1053. Return: BX = segment of object handle for new task
  1054.          0000h on error
  1055. SeeAlso: AX=DE24h,INT 21/AH=4Bh
  1056.  
  1057. Format of .PIF/.DVP file:
  1058. Offset    Size    Description
  1059.  00h    BYTE    reserved (0)
  1060.  01h    BYTE    checksum of bytes 02h through 170h
  1061.  02h 30 BYTEs    blank-padded program title
  1062.  20h    WORD    maximum memory to allocate to partition in K
  1063.  22h    WORD    minimum memory required in K
  1064.  24h 64 BYTEs    ASCIZ program pathname
  1065.  64h    BYTE    default drive letter ('A',...)
  1066.  65h 64 BYTEs    ASCIZ default directory name
  1067.  A5h 64 BYTEs    ASCIZ program parameters
  1068.  E5h    BYTE    initial screen mode (0-7) (see also offset 189h)
  1069.  E6h    BYTE    number of text pages used
  1070.  E7h    BYTE    number of first interrupt to save
  1071.  E8h    BYTE    number of last interrupt to save
  1072.  E9h    BYTE    rows in virtual screen buffer
  1073.  EAh    BYTE    columns in virtual screen buffer
  1074.  EBh    BYTE    initial window position, row
  1075.  ECh    BYTE    initial window position, column
  1076.  EDh    WORD    system memory in K
  1077.  EFh 64 BYTEs    ASCIZ shared program name
  1078. 12Fh 64 BYTEs    ASCIZ shared program data file
  1079. 16Fh    BYTE    flags1
  1080.         bit 7: writes text directly to screen
  1081.         bit 6: runs in foreground only (see also offset 184h)
  1082.         bit 5: uses math coprocessor
  1083.         bit 4: accesses system keyboard buffer directly
  1084.         bits 3-1: reserved (0)
  1085.         bit 0: swappable
  1086. 170h    BYTE    flags2
  1087.         bit 6: uses command-line parameters in field at A5h
  1088.         bit 5: swaps interrupt vectors
  1089. ---information unique to .DVP files---
  1090. 171h  2 BYTEs    keys to use on open menu
  1091. 173h    WORD    size of script buffer in bytes
  1092. 175h    WORD    automatically give up CPU after this many tests for keyboard
  1093.         input in one clock tick (default 0 = never)
  1094. 177h    BYTE    nonzero = "uses own colors"
  1095. 178h    BYTE    nonzero if application swappable
  1096. 179h  3 BYTEs    reserved (0) according to Quarterdeck documentation
  1097.         in actual .DVP files, frequently 01h
  1098. 17Ch    BYTE    nonzero to automatically close on exit (see also offset 18Bh)
  1099. 17Dh    BYTE    nonzero if copy-protect floppy is required
  1100. ---information unique to DESQview 2.0+---
  1101. 17Eh    BYTE    .DVP version number
  1102.         00h DESQview v1.2+
  1103.         01h DESQview v2.0+
  1104.         02h DESQview v2.2+
  1105. 17Fh    BYTE    reserved (0)
  1106. 180h    BYTE    initial number of rows in physical window
  1107. 181h    BYTE    initial number of columns in physical window
  1108. 182h    WORD    maximum expanded memory to allow, in K
  1109. 184h    BYTE    flags3
  1110.         bit 7: automatically assign window position
  1111.         bit 5: maximum memory value has been specified
  1112.         bit 4: disallow "Close" command
  1113.         bit 3: foreground-only when doing graphics
  1114.             set by DV 2.3+ when "Runs in Background" = "D" (undoc)
  1115.         bit 2: don't virtualize (see also offset 18Bh)
  1116.         bit 1: foreground-only during DOS calls
  1117.             set by DV 2.3+ when "Runs in Background" = "D" (undoc)
  1118. 185h    BYTE    keyboard conflict level (0-4 for DV<2.26, 00h-0Fh for DV2.26+)
  1119.         bit 3: save/restore entire INT 09 handler state every taskswtch
  1120.         bit 2: take special precautions for programs which read the
  1121.             BIOS keyboard buffer directly from memory
  1122.         bit 1: never indicate keystroke available during scripts/xfers
  1123.         bit 0: only indicate keystroke available every sixth poll
  1124. 186h    BYTE    number of graphics pages used
  1125. 187h    WORD    extra system memory size
  1126. 189h    BYTE    initial screen mode (FFh = default) (overrides offset E5h)
  1127. ---information unique to DESQview 2.2+---
  1128. 18Ah    BYTE    serial port usage
  1129.         FFh uses all serial ports
  1130.         00h no serial ports
  1131.         01h only COM1
  1132.         02h only COM2
  1133. 18Bh    BYTE    flags4
  1134.         bit 7: automatically close application on exit if .COM or .EXE
  1135.             specified (see also offset 17Ch)
  1136.         bit 6: swappable if not using serial ports
  1137.         bit 5: start program with window hidden (v2.26+)
  1138.         bit 4: start program in background (v2.26+)
  1139.         bit 3: virtualize text (see also offset 184h)
  1140.         bit 2: virtualize graphics (see also offset 184h)
  1141.         bit 1: share CPU when foreground
  1142.         bit 0: share EGA when foreground and zoomed
  1143. 18Ch    BYTE    protection level for 386 machines
  1144. 18Dh 19 BYTEs    reserved (0) for regular DESQview
  1145. ---information unique to DESQview/X 1.0---
  1146. 18Dh    BYTE    X flags
  1147.         bits 3-7: unused (0)
  1148.         bit 2: don't display wait message when opening window
  1149.         bit 1: don't display DOS window
  1150.         bit 0: (XNEWPROC) use DOS client layer (DOS-to-X)
  1151.                (NEWPROC) inherit DOS client layer usage
  1152. 18Eh    BYTE    X keyboard behavior (0-3)
  1153. 18Fh    BYTE    font scaling
  1154.         00h fixed fonts
  1155.         01h scalable fonts
  1156. 190h 10 BYTEs    reserved (0)
  1157. 19Ah    WORD    length of data follownig XDVP signature
  1158. 19Ch  4 BYTEs    signature "XDVP"
  1159. 1A0h  N BYTEs    list of variable length records (see below)
  1160.  
  1161. Format of variable length record:
  1162. Offset    Size    Description
  1163.  00h    WORD    length of following record, 0000h if end of record list
  1164.  02h    BYTE    record type
  1165.         01h script filename, up to 64 characters
  1166.         02h command-line parameters (allows >64 characters on cmdline)
  1167.         03h environment inheritance
  1168.         04h environment string
  1169.         05h starting window position
  1170. ---types 01h,02h,04h---
  1171.  03h  N BYTEs    ASCII data
  1172. ---type 03h---
  1173.  03h    BYTE    inheritance
  1174.         00h do not inherit
  1175.         01h inherit environment
  1176. ---type 05h---
  1177.  03h  N BYTEs    ASCII copy of fields as typed into DVPMAN, separated by commas:
  1178.         starting row, starting column, starting height, starting width
  1179. Note:    if there are multiple occurrences of record types 01h, 02h, or 03h,
  1180.       only the last instance of each type is used; multiple occurrences of
  1181.       type 04h are concatenated
  1182. --------Q-15102D-----------------------------
  1183. INT 15 - DESQview v2.00+ - "KMOUSE" - KEYBOARD MOUSE CONTROL
  1184.     AX = 102Dh
  1185.     BL = subfunction
  1186.          00h determine whether using keyboard mouse
  1187.         Return: BL = 00h using real mouse
  1188.                  01h using keyboard mouse
  1189.          01h turn keyboard mouse on
  1190.          02h turn keyboard mouse off
  1191. --------Q-15102E-----------------------------
  1192. INT 15 - DESQview v2.40+ - ALLOCATE SYSTEM MEMORY
  1193.     AX = 102Eh
  1194.     BX = number of bytes
  1195. Return: AX = status
  1196.         0000h successful
  1197.         ES:DI -> allocated system memory
  1198.         0001h failed
  1199.         ES:DI = 0000h:0000h
  1200. Note:    under DV 2.42, this call is identical to AX=1001h
  1201. SeeAlso: AX=1001h,AX=1002h,AX=DE0Ch
  1202.  
  1203. Format of system memory block header (one paragraph before memory block):
  1204. Offset    Size    Description
  1205.  00h    WORD    segment of next header or 0000h
  1206.  02h    WORD    segment of previous header or 0000h
  1207.  04h    WORD    size of block in paragraphs, including header
  1208.  06h    BYTE    availability flag (00h in use, 01h free)
  1209. --------Q-1511-------------------------------
  1210. INT 15 - TopView commands
  1211.     AH = 11h
  1212.     AL = various (except 17h)
  1213. Note:    in DESQview 2.x, these function calls are identical to AH=DEh, so
  1214.       see those below
  1215. SeeAlso: AH=DEh
  1216. --------T-1511-------------------------------
  1217. INT 15 - VMiX - "sys_system" - EXECUTE SHELL SYSTEM COMMANDS
  1218.     AH = 11h
  1219.     STACK:    DWORD    pointer to ASCIZ string containing a VMiX shell
  1220.             request (max len = 127)
  1221. Return: AX = status (SYS_OK or SYS_ERROR)
  1222. SeeAlso: AH=0Ch"VMiX"
  1223. --------T-1511-------------------------------
  1224. INT 15 - MultiDOS Plus - TURN OFF AltZ TOGGLE
  1225.     AH = 11h
  1226. Note:    disables the Alt-Z MultiDOS command/program-selection hotkey
  1227. SeeAlso: AH=12h"MultiDOS"
  1228. --------Q-151117BX0000-----------------------
  1229. INT 15 - DESQview v2.20+ - "ASSERTMAP" - GET/SET MAPPING CONTEXT
  1230.     AX = 1117h
  1231.     BX = 0000h    get current mapping context without setting
  1232.          nonzero    set new mapping context
  1233. Return: BX = mapping context in effect before call
  1234.     interrupts enabled
  1235. Notes:    this function differs from AX = DE17h for DESQview v2.20 through 2.25
  1236.     mapping contexts determine conventional-memory addressability; setting
  1237.       a mapping context ensures that the associated program and data areas
  1238.       are in memory for access.  Usable by drivers, TSRs and shared
  1239.       programs.
  1240.     caller need not be running under DESQview, but must ensure that the
  1241.       stack in use will not be mapped out by the call
  1242. SeeAlso: AX=DE17h,INT 2F/AX=1685h
  1243. --------m-1511DE-----------------------------
  1244. INT 15 - DESQview - QEXT.SYS - INSTALLATION CHECK
  1245.     AX = 11DEh
  1246. Return: CF clear if installed
  1247.         AX = segment at which QEXT.SYS is located
  1248. Desc:    QEXT.SYS is Quarterdeck's HMA manager for DESQview; more recent
  1249.       versions also implement the XMS standard
  1250. Note:    a private entry point may be found by searching the beginning of the
  1251.       returned segment for the signature string
  1252.       "QUARTERDECK EXTENDED MEMORY MANAGER 286"; the word immediately
  1253.       prior to the signature contains the QEXT version number in BCD,
  1254.       and the word prior to that contains the offset within the QEXT
  1255.       code segment of the private entry point
  1256. SeeAlso: INT 2F/AX=4310h,INT 67/AH=3Fh
  1257.  
  1258. Call private entry point with:
  1259.     AH = 00h ???
  1260.     AH = nonzero ???
  1261. --------T-1512-------------------------------
  1262. INT 15 - VMiX - "sys_sleep" - PUT PROCESS TO SLEEP
  1263.     AH = 12h
  1264.     STACK:    WORD    process ID
  1265. Return: AX = status (SYS_OK or SYS_ERROR)
  1266. SeeAlso: AH=03h"MultiDOS",AX=101Dh,AH=13h"VMiX"
  1267. --------T-1512-------------------------------
  1268. INT 15 - MultiDOS Plus - TURN ON AltZ TOGGLE
  1269.     AH = 12h
  1270. Note:    enables the Alt-Z MultiDOS command/program-selection hotkey
  1271. SeeAlso: AH=11h"MultiDOS"
  1272. --------Q-1512--BH00-------------------------
  1273. INT 15 - TopView - SEND MESSAGE - "HANDLE" - RETURN OBJECT HANDLE
  1274.     AH = 12h
  1275.     BH = 00h
  1276.     BL = which handle to return
  1277.         00h handle in DWORD on top of stack
  1278.         01h current task's window handle
  1279.         02h given task's mailbox handle (task's handle on stack)
  1280.         03h current task's mailbox handle
  1281.         04h given task's keyboard handle (task's handle on stack)
  1282.         05h current task's keyboard object handle
  1283.         06h given task's OBJECTQ handle (task's handle on stack)
  1284.         07h current task's OBJECTQ handle
  1285.         08h      \
  1286.           thru > return 0000:0000 under DV < 2.26
  1287.         10h      /
  1288.         0Ch (2.26+) task owning object with handle in DWORD on top of stack
  1289.         0Dh (2.26+) task handle of owner (parent) of current task
  1290. Return: DWORD on top of stack is object handle
  1291. Note:    BL=0Ch,0Dh returns 00000000h if the object is not open (keyboard,
  1292.       mailbox, panel, pointer, and timer objects) or is an orphan (task,
  1293.       window)
  1294. SeeAlso: AH=12h/BH=02h,AH=12h/BH=80h
  1295. --------Q-1512--BH01-------------------------
  1296. INT 15 - TopView - SEND MESSAGE - "NEW" - CREATE NEW OBJECT
  1297.     AH = 12h
  1298.     BH = 01h
  1299.     BL = object type to create
  1300.         00h (DV 2.0x only) handle is DWORD on top of stack
  1301.         01h (DV 2.0x only) use task's window handle
  1302.         02h (DV 2.0x only) given task's mailbox (task's handle on stack)
  1303.         03h (DV 2.0x only) current task's mailbox
  1304.         04h (DV 2.0x only) given task's keyboard (task's handle on stack)
  1305.         05h (DV 2.0x only) current task's keyboard object
  1306.         08h WINDOW class
  1307.         09h MAILBOX class
  1308.         0Ah KEYBOARD class
  1309.         0Bh TIMER object (counts down 32-bit time in 10ms increments)
  1310.         0Fh POINTER object
  1311.         10h PANEL object
  1312.     STACK: (if window object or WINDOW class)
  1313.            DWORD address to jump to (no new task if high word == 0)
  1314.            DWORD (reserved) 0 = non-task window, FFFFh = task window
  1315.            DWORD bytes for task's private stack (FFFFh == default of 0100h)
  1316.            DWORD bytes system memory for input buffer for READ/READN
  1317.             (0 == none, -1 == default--same as logical window size)
  1318.            DWORD window size, columns
  1319.            DWORD window size, rows
  1320.            DWORD length of window title
  1321.            DWORD address of window title
  1322. Return: DWORD on top of stack is new object handle
  1323. Notes:    if a new task is created, it is started with
  1324.       AX = BX = SI = DI = BP = 0
  1325.       DX:CX = handle of parent task
  1326.       DS = ES = SS = segment of private stack (and new task's handle)
  1327.     new windows are orphans, inherit the colors/hidden status of the
  1328.       creating task's window, and are placed in the upper left hand corner
  1329.       of the screen but not automatically redrawn
  1330.     new keyboards are closed, and have all object bits cleared except for
  1331.       the hardware cursor bit
  1332. SeeAlso: AH=12h/BH=02h,AH=12h/BH=81h
  1333. --------Q-1512--BH02-------------------------
  1334. INT 15 - TopView - SEND MESSAGE - "FREE" - FREE AN OBJECT
  1335.     AH = 12h
  1336.     BH = 02h
  1337.     BL = object
  1338.         00h handle in DWORD on top of stack
  1339.         window: close window and free
  1340.         timer: free timer
  1341.         panel: free panel object
  1342.         pointer: free pointer
  1343.         01h task's window handle - kills task, never returns
  1344.         02h given task's mailbox (task's handle on top of stack)
  1345.         03h current task's mailbox
  1346.         04h given task's keyboard (task's handle on top of stack)
  1347.         05h current task's keyboard object
  1348. Notes:    when a window is freed, its keyboard and pointer objects are freed;
  1349.       task windows also free any mailbox, objectq, and panel objects held
  1350.       by the task and any child tasks
  1351.     if the keyboard being freed is the default keyboard for a task, this
  1352.       call is equivalent to CLOSE
  1353.     panel and pointer objects are automatically closed if open
  1354. SeeAlso: AH=12h/BH=01h,AH=12h/BH=0Dh,AH=12h/BH=82h
  1355. --------Q-1512--BH03-------------------------
  1356. INT 15 - TopView - SEND MESSAGE - "ADDR" - GET HANDLE OF MESSAGE SENDER
  1357.     AH = 12h
  1358.     BH = 03h
  1359.     BL = object
  1360.         00h mailbox handle in DWORD on top of stack
  1361.         02h sender of last msg read from mailbox (task's handle on stack)
  1362.         03h sender of last msg read from current task's mailbox
  1363. Return: DWORD on stack is task handle of message sender
  1364. SeeAlso: AH=12h/BH=00h,AH=12h/BH=83h
  1365. --------Q-1512--BH03-------------------------
  1366. INT 15 - DESQview v2.26+ - "CONNECT" - CONNECT TWO WINDOWS
  1367.     AH = 12h
  1368.     BH = 03h
  1369.     BL = window to be connected
  1370.         00h handle of window to be attached in DWORD on top of stack
  1371.         01h attach current task's main window
  1372.     STACK: DWORD handle of window to attach to or 00000000h to detach
  1373. Return: STACK popped
  1374. Notes:    when two windows are connected, both will move if the user moves either
  1375.     multiple windows may be attached to a single window, but each window
  1376.       may only be attached to one window at a time
  1377. SeeAlso: AH=12h/BH=83h
  1378. --------Q-1512--BX0300-----------------------
  1379. INT 15 - TopView - SEND MESSAGE - "DIR" - GET PANEL FILE DIRECTORY
  1380.     AH = 12h
  1381.     BX = 0300h
  1382.     STACK: DWORD handle of panel object
  1383. Return: STACK: DWORD length of directory (always multiple of 14 bytes)
  1384.            DWORD address of directory
  1385. Note:    a null string is returned if the object is not open
  1386. SeeAlso: AH=12h/BX=0400h"APPLY",AH=12h/BH=83h
  1387.  
  1388. Format of panel file:
  1389. Offset    Size    Description
  1390.  00h  2 BYTEs    C0h C3h
  1391.  02h    BYTE    number of panels in file
  1392.  03h    for each panel in file:
  1393.         8 BYTEs  blank-padded panel name
  1394.           DWORD  panel offset in file
  1395.           WORD   panel length
  1396.     data for panels (each consists of one or more window/query/manager
  1397.     streams)
  1398.         first byte of each panel must be 1Bh, fifth byte must be E5h
  1399. --------Q-1512--BH04-------------------------
  1400. INT 15 - TopView - SEND MESSAGE - "READ" - READ NEXT LOGICAL LINE OF WINDOW
  1401.     AH = 12h
  1402.     BH = 04h
  1403.     BL = window to read from
  1404.         00h handle is DWORD on top of stack
  1405.         01h use calling task's default window
  1406.         0Ch (DV 2.26+) default window of task owning handle on top of stack
  1407.         0Dh (DV 2.26+) default window of parent task of current task
  1408. Return: STACK:    DWORD number of bytes read
  1409.         DWORD address of buffer
  1410. Notes:    reading starts at the current logical cursor position; the cursor is
  1411.       updated to point at the character following the last one read
  1412.     any translucent blanks (FFh) which are visible on screen are changed
  1413.       to the character which is seen through them
  1414.     the string produced by the read is placed in an input buffer which may
  1415.       be reused by the next READ or READN of a window
  1416.     window stream opcodes D8h and D9h determine whether the read returns
  1417.       characters or attributes
  1418. SeeAlso: AH=12h/BH=05h"WINDOW",AH=12h/BH=12h,AH=12h/BH=84h
  1419. --------Q-1512--BH04-------------------------
  1420. INT 15 - TopView - SEND MESSAGE - "READ" - GET NEXT RECORD FROM OBJECT
  1421.     AH = 12h
  1422.     BH = 04h
  1423.     BL = object
  1424.         00h handle is DWORD on top of stack
  1425.         mailbox: wait for and get next message
  1426.         keyboard: wait for and get pointer to next input buffer
  1427.         pointer: wait for and get next message
  1428.         02h get next message from mailbox (task's handle on top of stack)
  1429.         03h get next message from current task's mailbox
  1430.         04h get the next input from keyboard (handle on top of stack)
  1431.         05h get the next input from task's default keyboard
  1432.         06h wait for input from any object in OBJECTQ (handle on stack)
  1433.         07h wait for input from any object in task's default OBJECTQ
  1434. Return: STACK: (if objectq) DWORD handle of object with input
  1435.            (otherwise)  DWORD number of bytes
  1436.                 DWORD address
  1437. Notes:    for a keyboard in keystroke mode, the input buffer is a single byte
  1438.       containing the character code as returned by the BIOS; the BIOS scan
  1439.       code is available via the STATUS call if the character is zero
  1440.     for a keyboard in field mode, the input buffer format is determined
  1441.       by the field table header for the window the keyboard is attached to
  1442.     keyboard input buffers and mailbox message buffers may be invalidated
  1443.       by the next READ, ERASE, CLOSE, or FREE message to the same object
  1444. SeeAlso: AH=12h/BH=05h"OBJECT",AH=12h/BH=84h
  1445.  
  1446. Format of pointer message:
  1447. Offset    Size    Description
  1448.  00h    WORD    row
  1449.  02h    WORD    column
  1450.  04h    BYTE    status
  1451.         bit 7: set when press/release mode active and button pressed
  1452.         bit 6: set when press/release mode active and button released
  1453.         bits 7-2: number of clicks-1 if multiple-click mode active
  1454.         bits 1,0: button pressed (00=none,01=button1,10=button2)
  1455.  05h    BYTE    field number or zero (APILEVEL >= 2.00 only)
  1456. --------Q-1512--BX0400-----------------------
  1457. INT 15 - TopView - SEND MESSAGE - "READ" - WAIT FOR TIMER TO EXPIRE
  1458.     AH = 12h
  1459.     BX = 0400h
  1460.     STACK: DWORD timer's handle
  1461. Return: after timer expires
  1462.     STACK: DWORD time in 1/100 sec after midnight when timer expired
  1463. SeeAlso: AH=12h/BH=0Ah,AH=12h/BH=84h
  1464. --------Q-1512--BX0400-----------------------
  1465. INT 15 - TopView - SEND MESSAGE - "APPLY" - WRITE PANEL TO WINDOW
  1466.     AH = 12h
  1467.     BX = 0400h
  1468.     STACK: DWORD handle of panel object
  1469.            DWORD window's handle (or 0 for current task's window)
  1470.            DWORD length of panel name
  1471.            DWORD pointer to panel name
  1472. Return: STACK: DWORD handle of window which was used
  1473.            DWORD handle of keyboard or 0
  1474. Notes:    status of APPLY may be checked with STATUS message
  1475.     panel MUST have the following format
  1476.       first byte must be 1Bh (i.e. must start with a stream)
  1477.       first opcode in stream must be E5h
  1478.         single byte arg of opcode is interpreted thus:
  1479.           bits 7,6    11 means create new window
  1480.             10 means create new field table for existing window
  1481.             01 means use existing window and field table
  1482.           bit 5 if set, panel contains a field table 
  1483.             (creates a new keyboard and puts it in field mode)
  1484.           bit 4 if set, panel contains input fields
  1485.           bit 3 if set, panel contains select fields but no input fields
  1486.     if the panel contains input or select fields, a keyboard handle is
  1487.       returned; either the window's current open keyboard or a
  1488.       newly-created keyboard object.  The caller should read that keyboard
  1489.       to obtain input from the panel.
  1490. SeeAlso: AH=12h/BH=84h
  1491. --------Q-1512--BH05------------------------
  1492. INT 15 - TopView - SEND MESSAGE - "WRITE" - WRITE TO OBJECT
  1493.     AH = 12h
  1494.     BH = 05h
  1495.     BL = object
  1496.         00h handle is DWORD on top of stack
  1497.         timer: start timer to end at a specified time
  1498.         keyboard: add input buffer to queue
  1499.         pointer: move pointer icon to specified position
  1500.         02h send message by value/status=0 to mbox (task's handle on stack)
  1501.         03h send message by value/status=0 to current task's mailbox
  1502.         04h add input buffer to KEYBOARD queue (handle on top of stack)
  1503.         05h add input buffer to task's default KEYBOARD queue
  1504.         06h add an object to OBJECTQ (handle on top of stack)
  1505.         07h add an object to task's default OBJECTQ
  1506.     STACK: (if mailbox)  DWORD length
  1507.                  DWORD address
  1508.            (if keyboard) DWORD status (scan code in keystroke mode)
  1509.                  DWORD length (should be 1 in keystroke mode)
  1510.                  DWORD address
  1511.            (if objectq)  DWORD handle of object to add
  1512.            (if timer)    DWORD 1/100ths seconds since midnight (actually
  1513.                    only accurate to 1/18 sec)
  1514.            (if pointer)  DWORD column relative to origin of window
  1515.                  DWORD row relative to origin of window
  1516. Notes:    under DV 2.2+, failed mailbox writes may return CF set (see AX=DE15h)
  1517.     the data and status written to a keyboard object must match the format
  1518.       returned by the keyboard object in the current mode
  1519.     the pointer position is scaled according to the current scaling factors
  1520. SeeAlso: AH=12h/BH=04h,AH=12h/BH=85h
  1521. --------Q-1512--BH05-------------------------
  1522. INT 15 - TopView - SEND MESSAGE - "WRITE" - WRITE STRING TO WINDOW
  1523.     AH = 12h
  1524.     BH = 05h
  1525.     BL = window to write to
  1526.         00h DWORD on top of stack is window handle
  1527.         01h write string to task's default window
  1528.         0Ch (DV 2.26+) default window of task owning handle on top of stack
  1529.         0Dh (DV 2.26+) default window of parent of current task
  1530.     STACK: DWORD object handle if handle passed on stack
  1531.            DWORD total length of string (high word == 0)
  1532.            DWORD address of string to display
  1533. Return: indicated actions performed
  1534.     a. non-control characters are displayed (opcodes DEh and DFh control
  1535.        whether the attributes are left or changed to the current attrib)
  1536.     b. CR/LF/BS/Tab cause the usual cursor movement
  1537.     c. ESC starts a data structure with additional commands if following
  1538.        byte is less than 20h; otherwise, it is written to the window
  1539.     STACK:    DWORD handle of new window if window stream opcode E6h
  1540.         else nothing
  1541. SeeAlso: AH=12h/BH=04h,AH=12h/BH=85h
  1542.  
  1543. Data Structure:
  1544.     MAGIC  DB  1Bh
  1545.     MODE   DB  ?   ; 00h, 01h, 10h, 14h-1Fh legal
  1546.     LENGTH DW  ?   ; length of remainder in bytes
  1547.     var-length fields follow, each an OPCODE followed by
  1548.          zero or more args
  1549.  
  1550. MODE 00h (set or display values) "WINDOW STREAM"
  1551.     Opcodes:args
  1552.     00h  display 20h blanks with the default attribute
  1553.     01h-1Fh display OPCODE blanks with the default attribute
  1554.     20h  display char with default attribute 20h times
  1555.          BYTE char to repeat
  1556.     21h-3Fh display char with default attribute OPCODE-20h times
  1557.          BYTE char to repeat
  1558.     40h  display 20h blanks with specified attribute
  1559.          BYTE attribute of blanks
  1560.     41h-5Fh display OPCODE-40h blanks with specified attribute
  1561.          BYTE attribute of blanks
  1562.     60h  display next 20h characters
  1563.          20h BYTEs characters to display
  1564.     61h-7Fh display next OPCODE-60h characters
  1565.          N BYTEs characters to display
  1566.     80h-87h     display N blanks with default attribute
  1567.          BYTE low 8 bits of 11-bit count (high 3 in low 3 bits of OPCODE)
  1568.               [000h means 800h]
  1569.     88h-8Fh display N copies of the character
  1570.          BYTE low 8 bits of 11-bit count (high 3 in low 3 bits of OPCODE)
  1571.               [000h means 800h]
  1572.          BYTE character to repeat
  1573.     90h-97h     display N blanks with specified attribute
  1574.          BYTE low 8 bits of 11-bit length (high 3 in low 3 bits of OPCODE)
  1575.               [000h means 800h]
  1576.          BYTE attribute
  1577.     98h-9FH     display string at logical cursor pos
  1578.          BYTE low 8 bits of 11-bit length (high 3 in low 3 bits of OPCODE)
  1579.               [000h means 800h]
  1580.          N BYTEs string to display
  1581.     A0h  set logical cursor row
  1582.          BYTE row number (0 is top)
  1583.     A1h  set logical cursor column
  1584.          BYTE column number (0 is leftmost)
  1585.     A2h  set top edge of scrolling region
  1586.          BYTE row
  1587.     A3h  set left edge of scrolling region
  1588.          BYTE column
  1589.     A4h  set row of physical window position
  1590.          BYTE line
  1591.     A5h  set column of physical window position
  1592.          BYTE column
  1593.     A6h  set height of physical window
  1594.          BYTE #rows
  1595.     A7h  set width of physical window
  1596.          BYTE #columns
  1597.     A8h  set viewport row
  1598.          BYTE row
  1599.     A9h  set viewport column
  1600.          BYTE column
  1601.     AAh  set virtual screen height [contents of window unpredictable after]
  1602.          BYTE rows
  1603.     ABh  set virtual screen width [contents of window unpredictable after]
  1604.          BYTE columns
  1605.     ACh-AEh     unused
  1606.     AFh  set compatible/preferred video modes
  1607.          BYTE compatibility/preference mask
  1608.         bit 7    compatible with monochrome
  1609.         bit 6    compatible with color text, EGA/VGA graphics
  1610.         bit 5    compatible with medium-resolution CGA graphics
  1611.         bit 4    compatible with high-resolution CGA graphics
  1612.         bit 3    prefer monochrome
  1613.         bit 2    prefer color text, EGA/VGA graphics
  1614.         bit 1    prefer medium-resolution CGA graphics
  1615.         bit 0    prefer high-resolution CGA graphics
  1616.     B0h  move logical cursor down
  1617.          BYTE #rows (signed, negative values move up)
  1618.             [if #rows=0 and hardware cursor owner, update hw crsr]
  1619.     B1h  move logical cursor right
  1620.          BYTE #cols (signed, negative values move left)
  1621.             [if #cols=0 and hardware cursor owner, update hw crsr]
  1622.     B2h  shift top edge of scrolling region
  1623.          BYTE #rows (signed)
  1624.     B3h  shift left edge of scrolling region
  1625.          BYTE #cols (signed)
  1626.     B4h  shift physical window down
  1627.          BYTE #lines (signed)
  1628.     B5h  shift physical window right
  1629.          BYTE #columns (signed)
  1630.     B6h  expand physical window vertically
  1631.          BYTE #lines (signed)
  1632.     B7h  expand physical window horizontally
  1633.          BYTE #columns (signed)
  1634.     B8h  adjust viewport row
  1635.          BYTE #rows (signed)
  1636.     B9h  adjust viewport column
  1637.          BYTE #columns (signed)
  1638.     BAh  adjust virtual screen height [contents of window unpredict after]
  1639.          BYTE #rows to increase (signed)
  1640.     BBh  adjust virtual screen width [contents of window unpredictbl after]
  1641.          BYTE #cols to increase (signed)
  1642.     BCh-BFh     reserved (currently unused)
  1643.     C0h  set logical cursor position
  1644.          BYTE row number (0 is top border)
  1645.          BYTE column number (0 is left border)
  1646.     C1h  set top left corner of scrolling region
  1647.          BYTE row
  1648.          BYTE column
  1649.     C2h  set physical window pos
  1650.          BYTE upper left row (no top border if 0)
  1651.          BYTE upper left column (no left border if 0)
  1652.     C3h  set current window size
  1653.          BYTE #rows
  1654.          BYTE #cols
  1655.     C4h  set upper left corner of viewport (portion of virtual screen
  1656.          displayed in window)
  1657.          BYTE row
  1658.          BYTE column
  1659.     C5h  set size of virtual screen [contents unpredictable afterwards]
  1660.          BYTE #rows
  1661.          BYTE #cols
  1662.     C6h  unused
  1663.     C7h  unused
  1664.     C8h  set logical cursor relative to current position
  1665.          BYTE number of rows to move down (signed)
  1666.          BYTE number of columns to move right (signed)
  1667.           [if #rows=#cols=0 and hardware cursor owner, update hw cursr]
  1668.     C9h  shift top left corner of scrolling region
  1669.          BYTE #rows (signed)
  1670.          BYTE #cols (signed)
  1671.     CAh  set window pos relative to current position
  1672.          BYTE number of rows to shift down (signed)
  1673.          BYTE number of columns to shift right (signed)
  1674.     CBh  set window size relative to current size
  1675.          BYTE number of rows to expand (signed)
  1676.          BYTE number of cols to expand (signed)
  1677.     CCh  shift viewport relative to current position
  1678.          BYTE rows to shift (signed)
  1679.          BYTE cols to shift (signed)
  1680.     CDh  resize virtual screen
  1681.          BYTE #rows to expand (signed)
  1682.          BYTE #cols to expand (signed)
  1683.     CEh  scroll text when using E8h-EBh/F8h-FBh opcodes (default)
  1684.     CFh  scroll attributes when using  E8h-EBh/F8h-FBh opcodes
  1685.     D0h  allow window frame to extend beyond screen
  1686.     D1h  always display a complete frame, even if window extends beyond 
  1687.          edge of screen
  1688.     D2h  allow DV to change logical colors on video mode switch (default)
  1689.     D3h  application changes logical attributes
  1690.     D4h  window is visible [must redraw to actually make visible]
  1691.     D5h  window is hidden [must redraw to actually remove]
  1692.     D6h  window has frame (default)
  1693.     D7h  window unframed [must redraw to actually remove frame]
  1694.     D8h  READ/READN will read characters from window (default)
  1695.     D9h  READ/READN will read attributes from window
  1696.     DAh  use logical attributes, which may be remapped
  1697.         attributes
  1698.            1 normal text
  1699.            2 highlighted normal text
  1700.            3 help text
  1701.            4 highlighted help text
  1702.            5 error message
  1703.            6 highlighted error message
  1704.            7 emphasized text
  1705.            8 marked text
  1706.            9-16 are reverse video versions of 1-8
  1707.     DBh  use physical attributes for characters
  1708.     DCh  enable special actions for control characters (default)
  1709.     DDh  disable special control char handling, all chars displayable by
  1710.          BIOS TTY call
  1711.     DEh  write both character and attribute (default)
  1712.     DFh  write character only, leave attribute untouched
  1713.     E0h  repeat following commands through E1h opcode
  1714.          BYTE number of times to repeat (00h means 256 times)
  1715.     E1h  end of commands to repeat, start repeating them
  1716.     E2h  set current output color
  1717.          BYTE color
  1718.     E3h  clear virtual screen from scroll origin to end using current color
  1719.     E4h  redraw window
  1720.     E5h  select menu style
  1721.          BYTE style (normally 18h)
  1722.         bits 5,4 = 01 use two-letter menu entries for remainder of
  1723.           this stream
  1724.     E5h  (panel file only)
  1725.          BYTE modifier
  1726.         bits 7,6 = 11 panel stream creates new window
  1727.              = 10 panel defines new field table for existing window
  1728.              = 01 panel stream uses existing window & field table
  1729.         bit 5 = 1 stream contains a field table (create kyboard object)
  1730.         bit 4 = 1 stream defines input fields (create keyboard object)
  1731.         bit 3 = 1 stream defines select fields but not input fields
  1732.         bit 2 = 1 stream defines exclusive input window (DV 2.2)
  1733.         bit 1 reserved
  1734.         bit 0 reserved
  1735.     E6h  create new window and perform rest of manipulations in new window
  1736.          BYTE number of rows
  1737.          BYTE number of columns
  1738.          Return: DWORD object handle of new window returned on stack at end
  1739.          Note: the window is created with a physical size of 0x0 at the
  1740.              same position as the window to which this stream was sent
  1741.     E7h  no operation
  1742.     E8h  scroll area up (top left corner defined by opcode C1h)
  1743.          BYTE height
  1744.          BYTE width
  1745.     E9h  scroll area down (top left corner defined by opcode C1h)
  1746.          BYTE height
  1747.          BYTE width
  1748.     EAh  scroll area left (top left corner defined by opcode C1h)
  1749.          BYTE height
  1750.          BYTE width
  1751.     EBh  scroll area right (top left corner defined by opcode C1h)
  1752.          BYTE height
  1753.          BYTE width
  1754.     ECh  set logical attributes for window contents
  1755.          BYTE video modes command applies to
  1756.         bit 7    monochrome
  1757.         bit 6    color text, EGA/VGA graphics
  1758.         bit 5    medium-resolution CGA graphics
  1759.         bit 4    high-resolution CGA graphics
  1760.          BYTE which attributes to set
  1761.         bit 7  if set, copy single following byte to indicated attribs
  1762.         bits 4-6  # of first attribute to change - 1
  1763.         bits 0-3  # of consecutive attributes to change
  1764.          N BYTEs new attributes
  1765.     EDh  set logical attributes for window frame
  1766.          BYTE video modes command applies to (see opcode ECh)
  1767.          BYTE which attributes to set
  1768.         bit 7  if set, copy single following byte to indicated attrs
  1769.         bits 4-6  # of first attribute to change - 1
  1770.         bits 0-3  # of consecutive attributes to change
  1771.          N BYTEs new attributes
  1772.           attributes
  1773.                1 = top left corner
  1774.                2 = top right corner
  1775.                3 = bottom left corner
  1776.                4 = bottom right corner
  1777.                5 = top edge
  1778.                6 = bottom edge
  1779.                7 = left edge
  1780.                8 = right edge
  1781.     EEh  set characters for window frame
  1782.          BYTE video modes command applies to (see opcode ECh)
  1783.          BYTE which characters to set
  1784.         bit 7  if set, copy single following byte to indicated chars
  1785.         bits 4-6  # of first char to change - 1
  1786.         bits 0-3  # of consecutive chars to change
  1787.          N BYTEs new chars (same relative position as attributes above)
  1788.     EFh  set window name
  1789.          BYTE length of name (should be in range 0 to logical screen width)
  1790.          N BYTEs name
  1791.     F0h  clear input field to blanks
  1792.          BYTE field number
  1793.     F1h  fill input field with character
  1794.          BYTE field number
  1795.          BYTE char
  1796.     F2h  set color of input field
  1797.          BYTE field number (1-N)
  1798.          BYTE attribute
  1799.     F3h  set initial contents of input field
  1800.          BYTE field number (1-N)
  1801.          N BYTEs enough chars to exactly fill field as defined by op FFh
  1802.     F4h  position cursor to start of specific input field
  1803.          BYTE field number (1-N)
  1804.     F5h  change field table entry
  1805.          BYTE field number
  1806.          7-8 BYTEs field table entry (see opcode FFh below)
  1807.     F6h  set field type
  1808.          BYTE field number
  1809.          BYTE type
  1810.             00h inactive
  1811.             40h output field
  1812.             80h input field
  1813.             C0h deselected field
  1814.             C2h selected field
  1815.     F7h  "broadcast write"    write data to fields with program output bit
  1816.         set in field table entry, in field number order
  1817.          N BYTEs (total length of all program output fields)
  1818.     F8h  scroll field up a line
  1819.          BYTE field number
  1820.     F9h  scroll field down a line
  1821.          BYTE field number
  1822.     FAh  scroll field left
  1823.          BYTE field number
  1824.     FBh  scroll field right
  1825.          BYTE field number
  1826.     FCh  set field table header
  1827.          BYTE number of fields (must be <= existing number of fields)
  1828.          BYTE screen behavior bits
  1829.         bit 7  reserved
  1830.         bit 6  set if menu items may be selected via keyboard
  1831.         bit 5  set if left mouse button in "status" mode (press
  1832.             anywhere in window immediately returns control to app)
  1833.         bit 4  set if right mouse button in "status" mode
  1834.         bit 3  if set, select fields return contents or blanks rather
  1835.             than 'Y' or 'N'
  1836.         bit 2  if set, modified bits reset on return to application
  1837.         bits 0,1 = 00 no data returned on read of keyboard
  1838.                01 data returned as array of chars containing
  1839.                 all fields packed together, with no field
  1840.                 numbers
  1841.                10 data returned as numbered variable-length
  1842.                 records for all fields
  1843.                11 data returned as numbered variable-length
  1844.                 records for the fields which were modified
  1845.          BYTE current input field (updated by DESQview)
  1846.          BYTE current select field (updated by DESQview)
  1847.          BYTE attribute for select fields when they are pointed at
  1848.          BYTE attribute for select fields which have been selected
  1849.     FDh  reset modified bit for all fields
  1850.     FEh  reset selected and modified bits for all fields
  1851.     FFh  set up input fields
  1852.          6 BYTEs table header (see opcode FCh above)
  1853.          the field table entries, one for each field
  1854.          BYTE start row       \
  1855.          BYTE start column  \ if menu selection and start is to
  1856.          BYTE end row        / right or below end, select from kbd only
  1857.          BYTE end column   /
  1858.          BYTE field type
  1859.             bits 7,6 = 00 inactive (non-entry) field
  1860.                    01 echos keystrokes input to make menu selection
  1861.                    10 fill-in field
  1862.                    11 select field
  1863.             bit 5  field can be filled by broadcast write (F7h opcode)
  1864.             bit 4  reserved
  1865.             bit 3  reserved
  1866.             bit 2  reserved
  1867.             bit 1  set if field selected
  1868.             bit 0  set if field modified
  1869.          BYTE modifier
  1870.               if type is fill-in, then bit flags to determine behavior
  1871.               bit 7     if set, automatically enter CR when field full
  1872.               bit 6     move to next field when current field is full
  1873.               bit 5     if set, enter text from right end (for numbers)
  1874.               bit 4     if set, force input to uppercase
  1875.               bit 3     if set, clear old contents on first keystroke
  1876.               bit 2     if set, input returned when cursor moves out
  1877.                  of modified field ("validate",API level 2.02+)
  1878.               bit 1     reserved
  1879.               bit 0     reserved
  1880.               if select field, first key to press to activate
  1881.               00h if have to point-&-click or is an extended-ASCII
  1882.                   keystroke (only if two-key menus enabled)
  1883.          BYTE (select field only) normal color of field
  1884.          BYTE second key for select field.  This byte is present iff
  1885.               two-letter menu entries selected with opcode E5h, and
  1886.               in that case is present regardless of field type
  1887.          Note: DESQview uses and updates the actual copy of the information
  1888.            which is contained in the stream.  Thus this info must remain
  1889.            intact until after the data entry is complete.
  1890.  
  1891. MODE 01h "QUERY STREAM" (valid only for those opcodes listed here)
  1892.     A0h return logical cursor row in next byte
  1893.     A1h return logical cursor column in next byte
  1894.     A2h return top row of scrolling region in next byte
  1895.     A3h return left column of scrolling region in next byte
  1896.     A4h return row of physical window origin in next byte
  1897.     A5h return column of physical window origin in next byte
  1898.     A6h return height of physcial window in next byte
  1899.     A7h return width of physical window in next byte
  1900.     A8h return row of viewport origin in next byte
  1901.     A9h return column of viewport origin in next byte
  1902.     AAh return height of virtual screen in next byte
  1903.     ABh return width of virtual screen in next byte
  1904.     AFh return current video mode in next byte
  1905.     C0h return current logical cursor position in next two bytes
  1906.     C1h return top left corner of scrolling region in next two bytes
  1907.     C2h return current window position in next two bytes
  1908.     C3h return current window size in next two bytes
  1909.     C4h return current viewport origin in next two bytes
  1910.     C5h return current virtual screen size in next two bytes
  1911.     D0h \ overwritten with D0h if frames may fall off screen edge
  1912.     D1h /               D1h if frames always displayed entirely
  1913.     D2h \ overwritten with D2h if DESQview controls color palette
  1914.     D3h /               D3h if application changes color palette
  1915.     D4h \ overwritten with D4h if window visible
  1916.     D5h /               D5h if window hidden
  1917.     D6h \ overwritten with D6h if window has frame
  1918.     D7h /               D7h if window unframed
  1919.     D8h \ overwritten with D8h if reading characters from window
  1920.     D9h /               D9h if reading attributes from window
  1921.     DAh \ overwritten with DAh if using logical attributes
  1922.     DBh /               DBh if using physical attributes
  1923.     DCh \ overwritten with DCh if TTY control char interpretation on
  1924.     DDh /               DDh if TTY control char interpretation off
  1925.     DEh \ overwritten with DEh if writing both characters and attributes
  1926.     DFh /               DFh if leaving attributes untouched
  1927.     E2h return current color in next byte
  1928.     ECh get logical attributes for window contents
  1929.         BYTE execute call if currently in specified video mode
  1930.         bit 7    monochrome
  1931.         bit 6    color text, EGA/VGA graphics
  1932.         bit 5    medium-resolution CGA graphics
  1933.         bit 4    high-resolution CGA graphics
  1934.         BYTE which attributes to get
  1935.         bit 7 unused???
  1936.         bits 4-6 first attribute to get - 1
  1937.         bits 0-3 # consecutive attributes
  1938.         N BYTEs buffer to hold attributes
  1939.     EDh get logical attributes for window frame
  1940.         BYTE execute call if currently in video mode (see opcode ECh)
  1941.         BYTE which attributes to get
  1942.         bit 7 unused???
  1943.         bits 4-6 first attribute to get - 1
  1944.         bits 0-3 # consecutive attributes
  1945.         N BYTEs buffer to hold attributes
  1946.     EEh get characters for window frame
  1947.         BYTE execute call if currently in video mode (see opcode ECh)
  1948.         BYTE which attributes to get
  1949.         bit 7 unused???
  1950.         bits 4-6 first char to get - 1
  1951.         bits 0-3 # consecutive chars
  1952.         N BYTEs buffer to hold chars
  1953.     EFh return first N characters of current window name
  1954.         BYTE    max length of returned name
  1955.         N BYTEs buffer to hold window name
  1956.     F3h return contents of specified field
  1957.         BYTE field number
  1958.         N BYTEs buffer to hold field contents (size exactly equal to field
  1959.             size)
  1960.     F5h get field table entry
  1961.         BYTE field number
  1962.         7-8 BYTEs buffer to hold field table entry
  1963.            Notes: DV < 2.26 always returns 7 bytes
  1964.               DV 2.26+ w/ APILEVEL < 2.26 returns 8 bytes iff field
  1965.             table is using 8-byte entries and eighth byte after
  1966.             F5h is E7h (NOP); otherwise, 7 bytes are returned
  1967.               DV 2.26+ w/ APILEVEL > 2.26 returns 7 or 8 bytes
  1968.             depending on the field table entry size
  1969.     F6h get type of a field
  1970.         BYTE field number
  1971.         BYTE type
  1972.     FCh get field table header
  1973.         6 BYTEs buffer to store header
  1974.  
  1975. MODE 10h "MANAGER STREAM" (valid only for opcodes listed here)
  1976.     00h allow window to be moved horizontally
  1977.     01h allow window to be moved vertically
  1978.     02h allow window to change width
  1979.     03h allow window to change height
  1980.     04h allow window to be scrolled horizontally
  1981.     05h allow window to be scrolled vertically
  1982.     06h allow "Close Window" menu selection for application
  1983.     07h allow "Hide Window" menu selection for application
  1984.     08h allow application to be suspended ("Rearrange/Freeze")
  1985.     0Eh allow "Scissors" menu
  1986.     10h allow DESQview main menu to be popped up
  1987.     11h allow "Switch Windows" menu
  1988.     12h allow "Open Window" menu
  1989.     13h allow "Quit" menu selection
  1990.     20h-33h opposite of 00h-13h, disallow specified action
  1991.     40h notify if horizontal position of window changes
  1992.     41h notify if vertical position of window changes
  1993.     42h notify if width of window changes
  1994.     43h notify if height of window changes
  1995.     44h notify if window scrolled horizontally
  1996.     45h notify if window scrolled vertically
  1997.     46h notify if window is closed--program has to clean up and exit itself
  1998.     47h notify if window is hidden
  1999.     48h notify if "?" on main menu selected
  2000.     49h notify if pointer message sent to window
  2001.     4Ah notify if window is placed in foreground
  2002.     4Bh notify if window is placed in background
  2003.     4Ch notify if video mode changes
  2004.     4Dh notify if "Scissors" menu "Cut" option selected
  2005.     4Eh notify if "Scissors" menu "Copy" option selected
  2006.     4Fh notify if "Scissors" menu "Paste" option selected
  2007.     50h notify if DESQview main menu about to pop up
  2008.     51h notify if DESQview main menu popped down
  2009.     60h-71h     opposite of 40h-51h: don't notify on specified event
  2010.     84h attach window to parent task's window (both move together)
  2011.     85h detach window from parent task's window (may move independently)
  2012.     86h disable background operation for application
  2013.     87h enable running in background
  2014.     88h set minimum size of physical window
  2015.         BYTE rows
  2016.         BYTE columns
  2017.     89h set maximum size of physical window
  2018.         BYTE rows
  2019.         BYTE cols
  2020.     8Ah set primary asynchronous notification routine
  2021.         DWORD address of routine, 0000h:0000h means none (see also below)
  2022.     8Bh set async notification parameter
  2023.         DWORD 32-bit value passed to 8Ah async routine in DS:SI
  2024.     ACh (DV2.2+) perform regular select field attribute processing
  2025.     ADh (DV2.2+) protect attributes in selected field from being lost
  2026.     AEh make window default notify window for owning app (API level 2.00+)
  2027.     AFh set selected field marker character
  2028.         BYTE character to display at left edge of selected fields
  2029.     BCh set standard field processing mode 
  2030.     BDh set alternate field processing mode (enables cursor pad for menus)
  2031.     BEh disables changing reverse logical attributes with ECh opcode
  2032.     BFh enables changing reverse logical attributes with ECh opcode
  2033.     C0h make current window topmost in system
  2034.     C1h force current process into foreground
  2035.     C2h make current window topmost in process
  2036.     C3h position mouse pointer relative to origin of current field
  2037.         BYTE rows below upper left corner of field
  2038.         BYTE columns to right of upper left corner of field
  2039.     C4h position mouse pointer relative to origin of given field
  2040.         BYTE field number
  2041.         BYTE rows below upper left corner of field
  2042.         BYTE columns to right of upper left corner of field
  2043.     C5h orphan current window (also hides it)
  2044.         Note: must be last in stream; all subsequent commands ignored
  2045.     C6h show all windows for this process
  2046.     C7h hide all windows for this process
  2047.     C8h suspend process and hide all its windows
  2048.     C9h force current process into background
  2049.     CAh make current window bottom-most in process
  2050.     CBh cancel current window manager operation, remove DV menu, give 
  2051.         control to topmost application
  2052.     CCh orphan window and give it to the system for use as paste data
  2053.     CEh reorder windows
  2054.         DWORD pointer to null-terminated list of words
  2055.           each word is segment of object handle for a window
  2056.     FFh no operation
  2057.  
  2058. MODES 14h to 1Fh "USER STREAMS"
  2059.     normally NOPs, but may be defined by SETESC message to invoke FAR
  2060.     routines, one for each mode number
  2061.       on entry to handler,
  2062.         DS:SI -> first byte of actual stream (not header)
  2063.         CX = #bytes in stream
  2064.         ES:DI = window's handle
  2065.  
  2066. Asynchronous notification routine defined by manager stream 8Ah called with:
  2067.     ES:DI = handle of window
  2068.     DS:SI is 32-bit value set by 8Bh manager stream opcode
  2069.        mailbox contains message indicating event
  2070.           Opcode
  2071.            40h  horizontal movement
  2072.            DWORD object handle of window
  2073.            BYTE     new row
  2074.            BYTE     new col
  2075.            41h  vertical movement
  2076.            DWORD object handle of window
  2077.            BYTE     new row
  2078.            BYTE     new col
  2079.            42h  horizontal size change
  2080.            DWORD object handle of window
  2081.            BYTE     new rows
  2082.            BYTE     new cols
  2083.            43h  vertical size change
  2084.            DWORD object handle of window
  2085.            BYTE     new rows
  2086.            BYTE     new cols
  2087.            44h  scrolled horizontally
  2088.            DWORD object handle of window
  2089.            BYTE     mouse row within window
  2090.            BYTE     mouse column within window
  2091.            BYTE     field mouse is on, 0 if none
  2092.            BYTE     amount moved: >0 right, <0 left, 0 done
  2093.            45h  scrolled vertically
  2094.            DWORD object hande of window
  2095.            BYTE     mouse row within window
  2096.            BYTE     mouse column within window
  2097.            BYTE     field mouse is on, 0 if none
  2098.            BYTE     amount moved: >0 down, <0 up, 0 done
  2099.            46h  window close request
  2100.            DWORD object handle of window
  2101.            BYTE     mouse pointer row
  2102.            BYTE     mouse pointer column
  2103.            BYTE     field mouse is on, 0 if none
  2104.            47h  application's windows hidden
  2105.            48h  Help for Program selected
  2106.            DWORD object handle of window
  2107.            BYTE     mouse pointer row
  2108.            BYTE     mouse pointer column
  2109.            BYTE     field mouse is on, 0 if none
  2110.            49h  pointer message sent to window
  2111.            DWORD pointer handle which received message
  2112.            4Ah  switched to window from another ("raise")
  2113.            4Bh  switched away from the window ("lower")
  2114.            4Ch  video mode changed
  2115.            BYTE new BIOS video mode
  2116.            4Dh  Scissors/cUt selected
  2117.            DWORD object handle of window
  2118.            BYTE     row of upper left corner
  2119.            BYTE     column of upper left corner
  2120.            BYTE     field number ul corner is in, 0=none
  2121.            DWORD handle of orphaned window created with
  2122.              copy of data from specified region
  2123.            BYTE     height of region
  2124.            BYTE     width of region
  2125.            4Eh  Scissors/Copy selected
  2126.            DWORD object handle of window
  2127.            BYTE     row of upper left corner
  2128.            BYTE     column of upper left corner
  2129.            BYTE     field number ul corner is in, 0=none
  2130.            DWORD handle of orphaned window created with
  2131.              copy of data from specified region
  2132.            BYTE     height of region
  2133.            BYTE     width of region
  2134.            4Fh  Scissors/Paste selected
  2135.            DWORD object handle of window
  2136.            BYTE     row of upper left corner
  2137.            BYTE     column of upper left corner
  2138.            BYTE     field number ul corner is in, 0=none
  2139.            DWORD handle of orphaned window with data
  2140.            BYTE     height of region
  2141.            BYTE     width of region
  2142.             Note: orphaned data window should be adopted or freed
  2143.                 when done
  2144.            50h  main menu about to pop up
  2145.            51h  main menu popped down
  2146. Return: all registers unchanged
  2147. --------Q-1512--BH06-------------------------
  2148. INT 15 - DESQview 2.20+ - SEND MESSAGE - "SETPRI" - SET PRIORITY WITHIN OBJECTQ
  2149.     AH = 12h
  2150.     BH = 06h
  2151.     BL = object
  2152.         00h object handle in DWORD on top of stack
  2153.         mailbox, keyboard, pointer, or timer
  2154.         (DV 2.50+) window
  2155.         01h (DV 2.50+) current task's window
  2156.         04h given task's keyboard (task's handle on top of stack)
  2157.         05h current task's default keyboard
  2158.     STACK: DWORD new priority of object in task's OBJECTQ
  2159.             (new priority of task if window handle)
  2160. Notes:    initially all objects have the same default value.  Should only make 
  2161.       relative adjustments to this default value.
  2162.     when changing priorities, all objects already on the objectq are
  2163.       reordered
  2164.     for window handles, only the non-blocked task(s) with the highest
  2165.       priority receive CPU time under DESQview 2.50-2.52; the default
  2166.       priority is 0Ah
  2167. SeeAlso: AH=12h/BH=07h,AH=12h/BH=87h
  2168. --------Q-1512--BH07-------------------------
  2169. INT 15 - DESQview 2.20+ - SEND MESSAGE - "GETPRI" - GET PRIORITY WITHIN OBJECTQ
  2170.     AH = 12h
  2171.     BH = 07h
  2172.     BL = object
  2173.         00h object handle in DWORD on top of stack
  2174.         mailbox, keyboard, pointer, or timer
  2175.         (DV 2.50+) window
  2176.         01h (DV 2.50+) current task's window
  2177.         04h given task's keyboard (task's handle on top of stack)
  2178.         05h current task's default keyboard
  2179. Return: STACK: DWORD object priority
  2180. Note:    initially all objects have the same default value.  Should only make 
  2181.       relative adjustments to this default value.
  2182. SeeAlso: AH=12h/BH=06h
  2183. --------Q-1512--BH08-------------------------
  2184. INT 15 - TopView - SEND MESSAGE - "SIZEOF" - GET OBJECT SIZE
  2185.     AH = 12h
  2186.     BH = 08h
  2187.     BL = object
  2188.         00h handle in DWORD on top of stack
  2189.         window: total character positions in window
  2190.         timer: elapsed time since timer started
  2191.         pointer: number of messages queued to pointer object
  2192.         panel: number of panels in panel file
  2193.         keyboard: number of input buffers queued
  2194.         01h total chars in current task's default window
  2195.         02h number of messages in task's mailbox (task's handle on stack)
  2196.         03h number of messages in current task's mailbox
  2197.         04h number of input buffers queued in task's kbd (handle on stack)
  2198.         05h number of input buffers queued for current task's default kbd
  2199.         06h number of objects queued in OBJECTQ (task's handle on stack)
  2200.         07h number of objects queued in current task's OBJECTQ
  2201.         0Ch (DV 2.26+) total chars in window owning handle on top of stack
  2202.         0Dh (DV 2.26+) total chars in parent task's window
  2203. Return: DWORD on top of stack is result
  2204. Note:    for panel objects, a count of zero is returned if no panel file is open
  2205.       for the object
  2206. SeeAlso: AH=12h/BH=04h,AH=12h/BH=09h
  2207. --------Q-1512--BH09-------------------------
  2208. INT 15 - TopView - SEND MESSAGE - "LEN" - GET OBJECT LENGTH
  2209.     AH = 12h
  2210.     BH = 09h
  2211.     BL = object
  2212.         00h handle in DWORD on top of stack
  2213.         window: get chars/line
  2214.         timer: get 1/100 seconds remaining before timer expires
  2215.         mailbox: (DV/X) get number of bytes queued to mailbox
  2216.         01h get number of chars/line in current task's default window
  2217.         0Ch (DV 2.26+) get chars/line in window owning handle on top of stk
  2218.         0Dh (DV 2.26+) get chars/line in parent task's window
  2219. Return: DWORD on top of stack is length
  2220. SeeAlso: AH=12h/BH=08h
  2221. --------Q-1512--BH0A-------------------------
  2222. INT 15 - TopView - SEND MESSAGE - "ADDTO" - WRITE CHARS AND ATTRIBS TO WINDOW
  2223.     AH = 12h
  2224.     BH = 0Ah
  2225.     BL = window to write to
  2226.         00h window handle is DWORD on top of stack
  2227.         01h current task's default window
  2228.         0Ch (DV 2.26+) default window of task owning handle on top of stack
  2229.         0Dh (DV 2.26+) default window of parent of current task
  2230.     STACK:    DWORD count of attributes
  2231.         DWORD address of attribute string
  2232.         DWORD count of characters
  2233.         DWORD address of character string
  2234. Notes:    if one string is longer than the other, the shorter one will be reused
  2235.       until the longer one is exhausted
  2236.     the cursor is left just after the last character written
  2237. SeeAlso: AH=12h/BH=0Bh"WINDOW"
  2238. --------Q-1512--BH0A-------------------------
  2239. INT 15 - TopView - SEND MESSAGE - "ADDTO" - SEND MAILBOX MESSAGE/STAT BY VALUE
  2240.     AH = 12h
  2241.     BH = 0Ah
  2242.     BL = mailbox to write to
  2243.         00h handle is DWORD on top of stack
  2244.         02h default mailbox of task whose handle is on top of stack
  2245.         03h current task's default mailbox
  2246.     STACK:    DWORD    status (low byte)
  2247.         DWORD    length of message
  2248.         DWORD    address of message
  2249. Notes:    the message is copied into either system or common memory
  2250.     insufficient memory normally causes the process to be aborted; under
  2251.       DESQview 2.2+, failed writes may return CF set instead (see AX=DE15h)
  2252. SeeAlso: AH=12h/BH=0Bh"MAILBOX"
  2253. --------Q-1512--BH0A-------------------------
  2254. INT 15 - TopView - SEND MESSAGE - "ADDTO" - SET OBJECT BITS
  2255.     AH = 12h
  2256.     BH = 0Ah
  2257.     BL = object
  2258.         00h handle is DWORD on top of stack
  2259.         timer: start timer for specified interval
  2260.         pointer: set control flags
  2261.         keyboard: set control flags
  2262.         04h set control flags on KEYBOARD object (handle on top of stack)
  2263.         05h set control flags on task's default KEYBOARD object
  2264.     STACK: (if timer)   DWORD duration in 1/100 seconds
  2265.            (otherwise)  DWORD bits to set
  2266. SeeAlso: AH=12h/BH=0Bh"OBJECT"
  2267.  
  2268. For keyboard objects, the bits have the following significance:
  2269.     bit 15 reserved, can't be set
  2270.     bit 14 unused
  2271.     bit 13 reserved, can't be set
  2272.     bit 12-6 unused
  2273.     bit 5  (DV 2.2+) exclusive input
  2274.     bit 4  filter all keys (used with handler established by SETESC)
  2275.         if 0, only keys that would normally be displayed are filtered
  2276.     bit 3  program continues executing while input in progress
  2277.     bit 2  insert mode active for field mode
  2278.     bit 1  hardware cursor displayed when task is hardware cursor owner
  2279.         must be set if keyboard in field mode and field table includes
  2280.         input fields
  2281.     bit 0  keyboard is in field mode rather than keystroke mode
  2282.  
  2283. For pointer objects, the bits have the following significance:
  2284.     bit 15 reserved, can't be set
  2285.     bit 14-8 unused
  2286.     bit 7  mouse pointer is hidden while in window
  2287.     bit 6  get messages even if window not topmost
  2288.     bit 5  get messages even if window not foreground
  2289.     bit 4  multiple clicks separated by less than 1/3 second are counted
  2290.         and returned in a single message
  2291.     bit 3  pointer position is relative to screen origin, not window origin
  2292.     bit 2  send message on button release as well as button press
  2293.     bit 1  (DV 2.23+) send message with row=FFFFh and col=FFFFh whenever
  2294.         pointer leaves the window
  2295.     bit 0  send message only on button activity, not movement
  2296.            DV-specific, and INT 15/AX=DE0Fh must have been called first
  2297. --------Q-1512--BH0B-------------------------
  2298. INT 15 - TopView - SEND MESSAGE - "SUBFROM" - WRITE ATTRIBUTES TO WINDOW
  2299.     AH = 12h
  2300.     BH = 0Bh
  2301.     BL = window to write attributes to
  2302.         00h handle is DWORD on top of stack
  2303.         01h current task's default window
  2304.         0Ch (DV 2.26+) default window of task owning handle on top of stack
  2305.         0Dh (DV 2.26+) default window of parent of current task
  2306.     STACK:    DWORD number of attributes to write
  2307.         DWORD address of attributes
  2308. Note:    the attributes are written starting at the current cursor position; the
  2309.       cursor is left just after the last position written
  2310. SeeAlso: AH=12h/BH=0Ah"WINDOW"
  2311. --------Q-1512--BH0B-------------------------
  2312. INT 15 - TopView - SEND MESSAGE - "SUBFROM" - SEND MAILBOX MESSAGE/STAT BY REF
  2313.     AH = 12h
  2314.     BH = 0Bh
  2315.     BL = mailbox to write to
  2316.         00h handle is DWORD on top of stack
  2317.         02h default mailbox of task whose handle is on top of stack
  2318.         03h current task's default mailbox
  2319.     STACK:    DWORD    status (low byte)
  2320.         DWORD    length of message
  2321.         DWORD    address of message
  2322. Notes:    only a pointer to the message is stored, but the write may still fail
  2323.       due to insufficient memory
  2324.     under DV 2.2+, failed mailbox writes may return CF set (see AX=DE15h)
  2325. SeeAlso: AH=12h/BH=0Ah"MAILBOX"
  2326. --------Q-1512--BH0B-------------------------
  2327. INT 15 - TopView - SEND MESSAGE - "SUBFROM" - REMOVE OBJECT FROM OBJECTQ
  2328.     AH = 12h
  2329.     BH = 0Bh
  2330.     BL = OBJECTQ from which to remove all copies of a particular object
  2331.         06h OBJECTQ of task whose handle is on top of stack
  2332.         07h task's default OBJECTQ
  2333.     STACK:    DWORD    handle of object to remove
  2334. Note:    should be sent whenever an object is erased or closed
  2335. --------Q-1512--BH0B-------------------------
  2336. INT 15 - TopView - SEND MESSAGE - "SUBFROM" - RESET OBJECT BITS
  2337.     AH = 12h
  2338.     BH = 0Bh
  2339.     BL = object
  2340.         00h handle is DWORD on top of stack
  2341.         pointer: reset control flags
  2342.         keyboard: reset control flags
  2343.         04h clear control flags on KEYBOARD object (handle on top of stack)
  2344.         05h clear control flags on task's default KEYBOARD object
  2345.     STACK:    DWORD    which bits to clear (see AH=12h/BH=0Ah"OBJECT")
  2346. SeeAlso: AH=12h/BH=0Ah"OBJECT"
  2347. --------Q-1512--BH0C-------------------------
  2348. INT 15 - TopView - SEND MESSAGE - "OPEN" - OPEN OBJECT
  2349.     AH = 12h
  2350.     BH = 0Ch
  2351.     BL = object
  2352.         00h handle is DWORD on top of stack
  2353.         window:      fill with given character from scroll origin to end
  2354.         keyboard: attach to a window
  2355.         timer:      open
  2356.         pointer:  start taking input for window
  2357.         panel:      associate with a panel file
  2358.         01h fill task's default window with given char from scrl org to end
  2359.         02h open given task's mailbox for input (task's handle on stack)
  2360.         03h open current task's mailbox
  2361.         04h attach a KEYBOARD to a window (handle on top of stack)
  2362.         05h attach task's default KEYBOARD to a window
  2363.         06h open a task's OBJECTQ (task's handle on top of stack)
  2364.         07h open current task's OBJECTQ
  2365.         0Ch (DV 2.26+) fill def window of task owning handle on top of stck
  2366.         0Dh (DV 2.26+) fill default window of parent of current task
  2367.      STACK: (if window)   DWORD character to fill with
  2368.         (if keyboard) DWORD handle of window to attach to
  2369.         (if pointer)  DWORD handle of window to attach to
  2370.         (if panel)    DWORD length of filename or resident panel
  2371.                   DWORD address of filename or resident panel
  2372.         (otherwise)   nothing
  2373. Notes:    if first byte of panel file name is 1Bh, then the "name" IS a panel
  2374.     if first two bytes of panel file "name" are C0hC3h, then the "name" IS
  2375.       the panel file
  2376.     result code of open may be retrieved with STATUS message
  2377.     logical cursor is left at scroll origin after filling window
  2378.     the task opening a mailbox becomes its owner, and the only task allowed
  2379.       to read the mailbox
  2380.     messages are only sent to a pointer object when the mouse is positioned
  2381.       in the window to which the pointer has been attached
  2382.     there is no need to explicitly open a timer object, as ADDTO and WRITE
  2383.       messages automatically open the timer
  2384. SeeAlso: AH=12h/BH=0Dh,AH=12h/BH=14h"LOCK"
  2385. --------Q-1512--BH0D-------------------------
  2386. INT 15 - TopView - SEND MESSAGE - "CLOSE" - CLOSE OBJECT
  2387.     AH = 12h
  2388.     BH = 0Dh
  2389.     BL = object
  2390.         00h handle is DWORD on top of stack
  2391.         timer:      close
  2392.         keyboard: detach from window and discard queued input
  2393.         pointer:  stop taking input
  2394.         panel:      close
  2395.         mailbox:  close, unlock, and discard any pending messages
  2396.         02h close given task's mailbox (task's handle on top of stack)
  2397.         03h close task's default mailbox
  2398.         04h close KEYBOARD object (handle on top of stack)
  2399.         05h close task's default KEYBOARD
  2400.         06h close givent task's OBJECTQ (task's handle on top of stack)
  2401.         07h close current task's OBJECTQ
  2402. Notes:    when an OBJECTQ is closed, each object in the OBJECTQ is sent an
  2403.       ERASE message (AH=12h/BH=0Eh)
  2404.     when a panel object is closed, the panel file and any panels currently
  2405.       in use are freed; window and keyboard objects created by APPLY are
  2406.       not affected, but field mode input ceases
  2407.     open but idle timer objects consume a small amount of CPU time
  2408. SeeAlso: AH=12h/BH=0Ch,AH=12h/BH=0Eh,AH=12h/BH=14h"LOCK"
  2409. --------Q-1512--BH0E-------------------------
  2410. INT 15 - TopView - SEND MESSAGE - "ERASE" - ERASE OBJECT
  2411.     AH = 12h
  2412.     BH = 0Eh
  2413.     BL = object
  2414.         00h handle is DWORD on top of stack
  2415.         window:      clear from scroll origin to end of window
  2416.         keyboard: discard input
  2417.         timer:      cancel current interval
  2418.         pointer:  discard all pending messages
  2419.         mailbox:  discard all pending messages
  2420.         01h clear task's default window from scroll origin to end
  2421.         02h discard all queued messages in mailbox (handle on top of stack)
  2422.         03h discard all queued messages in current task's default mailbox
  2423.         04h discard all input queued to KEYBOARD (handle on top of stack)
  2424.         05h discard all input queued to task's default KEYBOARD
  2425.         06h remove all objects from OBJECTQ (task's handle on top of stack)
  2426.         07h remove all objects from current task's OBJECTQ
  2427.         0Ch (DV 2.26+) clear window of task owning handle on top of stack
  2428.         0Dh (DV 2.26+) clear default window of parent of current task
  2429. Note:    when an OBJECTQ is erased, each object in the OBJECTQ is also erased
  2430. SeeAlso: AH=12h/BH=02h
  2431. --------Q-1512--BH0F-------------------------
  2432. INT 15 - TopView - SEND MESSAGE - "STATUS" - GET OBJECT STATUS
  2433.     AH = 12h
  2434.     BH = 0Fh
  2435.     BL = object
  2436.         00h handle is DWORD on top of stack
  2437.         timer:     is it running?
  2438.         pointer: return status of last message
  2439.         panel:     verify success of last OPEN or APPLY
  2440.         02h return status of last msg READ from mailbox (handle on stack)
  2441.         03h return status of last msg READ from task's default mailbox
  2442.         04h get status of last msg from task's KEYBOARD (task handle on stk)
  2443.         05h get status of last msg from task's default KEYBOARD
  2444.         06h return whether OBJECTQ is open or not (handle on top of stack)
  2445.         07h return whether task's default OBJECTQ is open or not
  2446. Return: DWORD on top of stack is status
  2447. Notes:    if object is a panel object, the status indicates the error code:
  2448.       00h successful
  2449.       14h panel name not in panel directory
  2450.       15h not enough memory to apply panel
  2451.       16h invalid panel format
  2452.       17h panel file already open
  2453.       81h-92h  DOS error codes+80h            \  codes > 80h indicate
  2454.       95h not enough memory to open panel file     > that the panel was
  2455.       98h null panel file name            /  not opened
  2456.     if object is a timer, the status is:
  2457.       00000000h open but not running
  2458.       40000000h open and running
  2459.       80000000h closed
  2460.     if object is an OBJECTQ, the status is:
  2461.       00000000h open
  2462.       80000000h closed
  2463.     if object is a keyboard in keystroke mode, the status is the extended
  2464.       character code (scan code) of teh last keystroke
  2465.     if object is a keyboard in field mode, the status indicates the reason
  2466.       for the last return from the field manager
  2467.       00h Enter key pressed
  2468.       01h Button 1 or keystroke selection
  2469.       02h Button 2
  2470.       03h validation
  2471.       04h auto Enter on field
  2472.       1Bh Escape pressed
  2473.       46h ^Break pressed
  2474.       other: extended code for key terminating input
  2475.     the status of mailbox messages sent by the window manager is always 80h
  2476.     the status of a pointer message is the same as the status field in the
  2477.       message
  2478. SeeAlso: AH=12h/BH=04h"READ"
  2479. --------Q-1512--BH10-------------------------
  2480. INT 15 - TopView - SEND MESSAGE - "EOF" - GET OBJECT EOF STATUS
  2481.     AH = 12h
  2482.     BH = 10h
  2483.     BL = object
  2484.         00h handle is DWORD on top of stack
  2485.         window: return TRUE if logical cursor past end of window
  2486.         mailbox: ???
  2487.         01h returns TRUE if logical cursor past end of task's def window
  2488.         02h return ??? for task's mailbox (task's handle on top of stack)
  2489.         03h return ??? for current task's mailbox
  2490.         0Ch (DV 2.26+) check log crsr of window owning handle on top of stk
  2491.         0Dh (DV 2.26+) check log cursor of window of parent task
  2492. Return: DWORD on top of stack is status
  2493. --------Q-1512--BH11-------------------------
  2494. INT 15 - TopView - SEND MESSAGE - "AT" - POSITION OBJECT CURSOR
  2495.     AH = 12h
  2496.     BH = 11h
  2497.     BL = window for which to move cursor
  2498.         00h window's handle is DWORD on top of stack
  2499.         01h task's default window
  2500.         0Ch (DV 2.26+) default window of task owning handle on top of stack
  2501.         0Dh (DV 2.26+) default window of parent of current task
  2502.     STACK: DWORD column
  2503.            DWORD row
  2504. --------Q-1512--BH11-------------------------
  2505. INT 15 - TopView - SEND MESSAGE - "SETNAME" - ASSIGN NAME TO MAILBOX
  2506.     AH = 12h
  2507.     BH = 11h
  2508.     BL = mailbox to name
  2509.         00h DWORD on top of stack is mailbox handle
  2510.         02h use given task's mailbox (task's handle on top of stack)
  2511.         03h use current task's default mailbox
  2512.     STACK: DWORD length of name
  2513.            DWORD address of name
  2514. SeeAlso: AH=12h/BH=12h"GETNAME",AX=DE0Eh
  2515. --------Q-1512--BX1100-----------------------
  2516. INT 15 - TopView - SEND MESSAGE - "SETSCALE" - SET POINTER SCALE FACTOR
  2517.     AH = 12h
  2518.     BX = 1100h
  2519.     STACK: DWORD object handle for pointer object
  2520.            DWORD number of colums to scale pointer position to
  2521.            DWORD number of rows to scale pointer position to
  2522. SeeAlso: AH=12h/BX=1200h
  2523. --------Q-1512--BH12-------------------------
  2524. INT 15 - TopView - SEND MESSAGE - "READN" - GET NEXT N OBJECT BYTES
  2525.     AH = 12h
  2526.     BH = 12h
  2527.     BL = window to read from
  2528.         00h handle is DWORD on top of stack
  2529.         01h read next N chars or attributes on task's default window
  2530.         0Ch (DV 2.26+) read window of task owning handle on top of stack
  2531.         0Dh (DV 2.26+) read default window of parent of current task
  2532.     STACK: DWORD count
  2533. Return: STACK: DWORD number of bytes actually read
  2534.            DWORD address of buffer containing data
  2535. Notes:    reading starts at the current logical cursor position; the cursor is
  2536.       updated to point at the character following the last one read
  2537.     any translucent blanks (FFh) which are visible on screen are changed
  2538.       to the character which is seen through them
  2539.     the string produced by the read is placed in an input buffer which may
  2540.       be reused by the next READ or READN of a window
  2541.     window stream opcodes D8h and D9h determine whether the read returns
  2542.       characters or attributes
  2543. SeeAlso: AH=12h/BH=04h"WINDOW",AH=12h/BH=05h"WINDOW"
  2544. --------Q-1512--BH12-------------------------
  2545. INT 15 - DESQview 2.50+ - SEND MESSAGE - "GETNAME" - GET NAME OF MAILBOX
  2546.     AH = 12h
  2547.     BH = 12h
  2548.     BL = mailbox for which to retrieve name
  2549.         00h DWORD on top of stack is mailbox handle
  2550.         02h use given task's mailbox (task's handle on top of stack)
  2551.         03h use current task's default mailbox
  2552.     STACK: DWORD length of buffer for name
  2553.            DWORD pointer to buffer
  2554. Return: STACK: DWORD length of returned name (or size of buffer, if less)
  2555. Program: DESQview 2.5x is distributed as part of DESQview/X 1.0x
  2556. Note:    the returned name is not NUL-terminated
  2557. SeeAlso: AH=12h/BH=11h"SETNAME",AX=DE0Eh
  2558. --------Q-1512--BX1200-----------------------
  2559. INT 15 - TopView - SEND MESSAGE - "GETSCALE" - GET POINTER SCALE FACTOR
  2560.     AH = 12h
  2561.     BX = 1200h
  2562.     STACK: DWORD object handle for pointer
  2563. Return: STACK: DWORD pointer pos scaled as if window were this many colums wide
  2564.            DWORD pointer pos scaled as if window were this many rows high
  2565. SeeAlso: AH=12h/BX=1100h
  2566. --------Q-1512--BH13-------------------------
  2567. INT 15 - TopView - SEND MESSAGE - "REDRAW" - REDRAW WINDOW
  2568.     AH = 12h
  2569.     BH = 13h
  2570.     BL = window object
  2571.         00h DWORD on top of stack is handle for window to redraw
  2572.         01h redraw task's default window
  2573.         0Ch (DV 2.26+) redraw window of task owning handle on top of stack
  2574.         0Dh (DV 2.26+) redraw default window of parent of current task
  2575. SeeAlso: AH=12h/BH=05h"WINDOW",AH=12h/BH=0Eh
  2576. --------Q-1512--BH13-------------------------
  2577. INT 15 - DESQview 2.50+ - SEND MESSAGE - "READINTO" - GET NEXT MAIL MESSAGE
  2578.     AH = 12h
  2579.     BH = 13h
  2580.     BL = mailbox from which to read
  2581.         00h DWORD on top of stack is mailbox handle
  2582.         02h use given task's mailbox (task's handle on top of stack)
  2583.         03h use current task's default mailbox
  2584.     STACK: DWORD size of buffer in bytes
  2585.            DWORD pointer to buffer
  2586. Return: STACK: DWORD number of bytes read
  2587. Program: DESQview 2.5x is distributed as part of DESQview/X 1.0x
  2588. Notes:    this call blocks if no input is available, but will return less than
  2589.       the requested number of bytes if some (but insufficient) data is
  2590.       available
  2591.     use this call instead of AH=12h/BH=04h if the mailbox has flag bits
  2592.       4 or 5 set, as common memory may be exhausted by that call when
  2593.       attempting to read the next message
  2594. SeeAlso: AH=12h/BH=04h"READ",AH=12h/BH=05h,AH=12h/BH=16h
  2595. --------Q-1512--BX1300-----------------------
  2596. INT 15 - TopView - SEND MESSAGE - "SETICON" - SPECIFY POINTER ICON
  2597.     AH = 12h
  2598.     BX = 1300h
  2599.     STACK: DWORD object handle for pointer
  2600.            DWORD character to use for pointer
  2601. --------Q-1512--BH14-------------------------
  2602. INT 15 - TopView - SEND MESSAGE - "SETESC" - SET ESCAPE ROUTINE ADDRESS
  2603.     AH = 12h
  2604.     BH = 14h
  2605.     BL = message modifier
  2606.         00h handle is DWORD on top of stack
  2607.         01h define user stream
  2608.         04h intercept keystrokes from KEYBOARD to a window (handle on stack)
  2609.         05h intercept keystrokes from task's default KEYBOARD to a window
  2610.     STACK: (if window)   DWORD user stream number (14h-1Fh)
  2611.                  DWORD address of FAR user stream handler
  2612.            (if keyboard) DWORD address of FAR filter function
  2613.  
  2614. The keyboard filter function is called when the keyboard is in field mode.  On
  2615. entry,
  2616.     AL = character
  2617.     AH = 00h or extended ASCII code if AL = 00h
  2618.     BL = field number
  2619.     CH = cursor column
  2620.     CL = cursor row
  2621.     DL = field type modifier (sixth item in field table entry)
  2622.     DH = seventh item in field table entry
  2623.     ES:SI = window's handle
  2624.     DS:DI -> field table entry for field containing the cursor
  2625. The filter function should return
  2626.     AH = 00h use keystroke
  2627.          01h ignore keystroke
  2628.          FFh beep and ignore keystroke
  2629. Note: the filter function is not allowed to make INT 15, DOS, or BIOS calls
  2630. --------Q-1512--BH14-------------------------
  2631. INT 15 - TopView - SEND MESSAGE - "LOCK" - REQUEST EXCLUSIVE ACCESS TO RESOURCE
  2632.     AH = 12h
  2633.     BH = 14h
  2634.     BL = object
  2635.         00h mailbox handle is DWORD on top of stack
  2636.         02h use given task's mailbox (task's handle on top of stack)
  2637.         03h use current task's default mailbox
  2638. Note:    release exclusive access by sending CLOSE message to mailbox
  2639.     access may be requested multiple times, and requires multiple CLOSEs
  2640. SeeAlso: AH=12h/BH=0Dh
  2641. --------Q-1512--BH15-------------------------
  2642. INT 15 - DESQview v2.20+ - SEND MESSAGE - "SETFLAGS" - SET OBJECT FLAGS
  2643.     AH = 12h
  2644.     BH = 15h
  2645.     BL = object
  2646.         00h DWORD on top of stack
  2647.         mailbox, keyboard, or pointer only
  2648.         02h mailbox for task whose handle is on top of stack
  2649.         03h mailbox for current task
  2650.         04h keyboard for task whose handle is on top of stack
  2651.         05h keyboard for current task
  2652.     STACK: DWORD flags
  2653.         if mailbox:
  2654.             bit 0: all mail messages in common memory
  2655.             bit 1: allow write even if closed
  2656.             bit 2: don't erase messages when mailbox closed
  2657.             bit 4: (DV/X) append messages with like status and
  2658.                 sender (stream-oriented mail)
  2659.             bit 5: (DV/X) store mail in expanded memory (pool
  2660.                 grows as needed)
  2661.             bit 6: (DV/X) make mailbox into non-owned mailbox
  2662.         if keyboard:
  2663.             bit 5: exclusive input when keyboard in use for input
  2664. Return: nothing
  2665. Notes:    only available if the API level has been set to at least 2.20
  2666.     equivalent to performing SUBFROM and ADDTO calls on the object
  2667.     if a mailbox has bits 4 or 5 set, you must use "READINTO" rather than
  2668.       "READ" (see AH=12h/BX=1300h"READINTO") to retrieve messages
  2669. SeeAlso: AH=12h/BH=0Ah,AH=12h/BH=0Bh,AH=12h/BH=16h
  2670. --------Q-1512--BH16-------------------------
  2671. INT 15 - DESQview v2.20+ - SEND MESSAGE - "GETFLAGS" - GET OBJECT FLAGS
  2672.     AH = 12h 
  2673.     BH = 16h
  2674.     BL = object
  2675.         00h DWORD on top of stack
  2676.         mailbox, keyboard, or pointer only
  2677.         02h mailbox for task whose handle is on top of stack
  2678.         03h mailbox for current task
  2679.         04h keyboard for task whose handle is on top of stack
  2680.         05h keyboard for current task
  2681. Return: STACK: DWORD current control flags (see AH=12h/BH=15h)
  2682. Notes:    only available if the API level has been set to at least 2.20
  2683.     if a mailbox has bits 4 or 5 set, you must use "READINTO" rather than
  2684.       "READ" (see AH=12h/BH=13h"READINTO") to retrieve messages
  2685. SeeAlso: AH=12h/BH=0Ah,AH=12h/BH=0Bh,AH=12h/BH=13h"READINTO",AH=12h/BH=15h
  2686. --------Q-1512--BH17-------------------------
  2687. INT 15 - DESQview v2.42-2.52 - BUG
  2688.     AH = 12h
  2689.     BH = 17h
  2690.     BL = object
  2691.         00h DWORD on top of stack
  2692.         mailbox, keyboard, or pointer only
  2693.         02h mailbox for task whose handle is on top of stack
  2694.         03h mailbox for current task
  2695.         04h keyboard for task whose handle is on top of stack
  2696.         05h keyboard for current task
  2697. Notes:    due to a fencepost error, message 17h is accepted for mailboxes,
  2698.       keyboards, and pointers, but causes a random branch
  2699.     DESQview v2.50-2.52 are distributed as part of DESQview/X v1.02
  2700. --------Q-1512--BH80-------------------------
  2701. INT 15 - DESQview v2.50+ - SEND MESSAGE 00h WITH ERROR RECOVERY
  2702.     AH = 12h
  2703.     BH = 80h
  2704. Note:    this function is identical to AH=12h/BH=00h, except that DESQview will
  2705.       not pop up a "Programming Error" window, instead returning an error
  2706.       code in AL:
  2707.         00h no error
  2708.         01h invalid values
  2709.         02h alias invalid
  2710.         03h handle valid but wrong type
  2711.         04h invalid handle
  2712. SeeAlso: AH=12h/BH=00h
  2713. --------Q-1512--BH81-------------------------
  2714. INT 15 - DESQview v2.50+ - SEND MESSAGE 01h WITH ERROR RECOVERY
  2715.     AH = 12h
  2716.     BH = 81h
  2717. Note:    this function is identical to AH=12h/BH=01h, except that DESQview will
  2718.       not pop up a "Programming Error" window, instead returning an error
  2719.       code in AL (see AH=12h/BH=80h)
  2720. SeeAlso: AH=12h/BH=01h
  2721. --------Q-1512--BH82-------------------------
  2722. INT 15 - DESQview v2.50+ - SEND MESSAGE 02h WITH ERROR RECOVERY
  2723.     AH = 12h
  2724.     BH = 82h
  2725. Note:    this function is identical to AH=12h/BH=02h, except that DESQview will
  2726.       not pop up a "Programming Error" window, instead returning an error
  2727.       code in AL (see AH=12h/BH=80h)
  2728. SeeAlso: AH=12h/BH=02h
  2729. --------Q-1512--BH83-------------------------
  2730. INT 15 - DESQview v2.50+ - SEND MESSAGE 03h WITH ERROR RECOVERY
  2731.     AH = 12h
  2732.     BH = 83h
  2733. Note:    this function is identical to AH=12h/BH=03h, except that DESQview will
  2734.       not pop up a "Programming Error" window, instead returning an error
  2735.       code in AL (see AH=12h/BH=80h)
  2736. SeeAlso: AH=12h/BH=03h,AH=12h/BX=0300h
  2737. --------Q-1512--BH84-------------------------
  2738. INT 15 - DESQview v2.50+ - SEND MESSAGE 04h WITH ERROR RECOVERY
  2739.     AH = 12h
  2740.     BH = 84h
  2741. Note:    this function is identical to AH=12h/BH=04h, except that DESQview will
  2742.       not pop up a "Programming Error" window, instead returning an error
  2743.       code in AL (see AH=12h/BH=80h)
  2744. SeeAlso: AH=12h/BH=04h,AH=12h/BX=0400h
  2745. --------Q-1512--BH85-------------------------
  2746. INT 15 - DESQview v2.50+ - SEND MESSAGE 05h WITH ERROR RECOVERY
  2747.     AH = 12h
  2748.     BH = 85h
  2749. Note:    this function is identical to AH=12h/BH=05h, except that DESQview will
  2750.       not pop up a "Programming Error" window, instead returning an error
  2751.       code in AL (see AH=12h/BH=80h)
  2752. SeeAlso: AH=12h/BH=05h
  2753. --------Q-1512--BH86-------------------------
  2754. INT 15 - DESQview v2.50+ - SEND MESSAGE 06h WITH ERROR RECOVERY
  2755.     AH = 12h
  2756.     BH = 86h
  2757. Note:    this function is identical to AH=12h/BH=06h, except that DESQview will
  2758.       not pop up a "Programming Error" window, instead returning an error
  2759.       code in AL (see AH=12h/BH=80h)
  2760. SeeAlso: AH=12h/BH=06h
  2761. --------Q-1512--BH87-------------------------
  2762. INT 15 - DESQview v2.50+ - SEND MESSAGE 07h WITH ERROR RECOVERY
  2763.     AH = 12h
  2764.     BH = 87h
  2765. Note:    this function is identical to AH=12h/BH=07h, except that DESQview will
  2766.       not pop up a "Programming Error" window, instead returning an error
  2767.       code in AL (see AH=12h/BH=80h)
  2768. SeeAlso: AH=12h/BH=07h
  2769. --------Q-1512--BH88-------------------------
  2770. INT 15 - DESQview v2.50+ - SEND MESSAGE 08h WITH ERROR RECOVERY
  2771.     AH = 12h
  2772.     BH = 88h
  2773. Note:    this function is identical to AH=12h/BH=08h, except that DESQview will
  2774.       not pop up a "Programming Error" window, instead returning an error
  2775.       code in AL (see AH=12h/BH=80h)
  2776. SeeAlso: AH=12h/BH=08h
  2777. --------Q-1512--BH89-------------------------
  2778. INT 15 - DESQview v2.50+ - SEND MESSAGE 09h WITH ERROR RECOVERY
  2779.     AH = 12h
  2780.     BH = 89h
  2781. Note:    this function is identical to AH=12h/BH=09h, except that DESQview will
  2782.       not pop up a "Programming Error" window, instead returning an error
  2783.       code in AL (see AH=12h/BH=80h)
  2784. SeeAlso: AH=12h/BH=09h
  2785. --------Q-1512--BH8A-------------------------
  2786. INT 15 - DESQview v2.50+ - SEND MESSAGE 0Ah WITH ERROR RECOVERY
  2787.     AH = 12h
  2788.     BH = 8Ah
  2789. Note:    this function is identical to AH=12h/BH=0Ah, except that DESQview will
  2790.       not pop up a "Programming Error" window, instead returning an error
  2791.       code in AL (see AH=12h/BH=80h)
  2792. SeeAlso: AH=12h/BH=0Ah
  2793. --------Q-1512--BH8B-------------------------
  2794. INT 15 - DESQview v2.50+ - SEND MESSAGE 0Bh WITH ERROR RECOVERY
  2795.     AH = 12h
  2796.     BH = 8Bh
  2797. Note:    this function is identical to AH=12h/BH=0Bh, except that DESQview will
  2798.       not pop up a "Programming Error" window, instead returning an error
  2799.       code in AL (see AH=12h/BH=80h)
  2800. SeeAlso: AH=12h/BH=0Bh
  2801. --------Q-1512--BH8C-------------------------
  2802. INT 15 - DESQview v2.50+ - SEND MESSAGE 0Ch WITH ERROR RECOVERY
  2803.     AH = 12h
  2804.     BH = 8Ch
  2805. Note:    this function is identical to AH=12h/BH=0Ch, except that DESQview will
  2806.       not pop up a "Programming Error" window, instead returning an error
  2807.       code in AL (see AH=12h/BH=80h)
  2808. SeeAlso: AH=12h/BH=0Ch
  2809. --------Q-1512--BH8D-------------------------
  2810. INT 15 - DESQview v2.50+ - SEND MESSAGE 0Dh WITH ERROR RECOVERY
  2811.     AH = 12h
  2812.     BH = 8Dh
  2813. Note:    this function is identical to AH=12h/BH=0Dh, except that DESQview will
  2814.       not pop up a "Programming Error" window, instead returning an error
  2815.       code in AL (see AH=12h/BH=80h)
  2816. SeeAlso: AH=12h/BH=0Dh
  2817. --------Q-1512--BH8E-------------------------
  2818. INT 15 - DESQview v2.50+ - SEND MESSAGE 0Eh WITH ERROR RECOVERY
  2819.     AH = 12h
  2820.     BH = 8Eh
  2821. Note:    this function is identical to AH=12h/BH=0Eh, except that DESQview will
  2822.       not pop up a "Programming Error" window, instead returning an error
  2823.       code in AL (see AH=12h/BH=80h)
  2824. SeeAlso: AH=12h/BH=0Eh
  2825. --------Q-1512--BH8F-------------------------
  2826. INT 15 - DESQview v2.50+ - SEND MESSAGE 0Fh WITH ERROR RECOVERY
  2827.     AH = 12h
  2828.     BH = 8Fh
  2829. Note:    this function is identical to AH=12h/BH=0Fh, except that DESQview will
  2830.       not pop up a "Programming Error" window, instead returning an error
  2831.       code in AL (see AH=12h/BH=80h)
  2832. SeeAlso: AH=12h/BH=0Fh
  2833. --------Q-1512--BH90-------------------------
  2834. INT 15 - DESQview v2.50+ - SEND MESSAGE 10h WITH ERROR RECOVERY
  2835.     AH = 12h
  2836.     BH = 90h
  2837. Note:    this function is identical to AH=12h/BH=10h, except that DESQview will
  2838.       not pop up a "Programming Error" window, instead returning an error
  2839.       code in AL (see AH=12h/BH=80h)
  2840. SeeAlso: AH=12h/BH=10h
  2841. --------Q-1512--BH91-------------------------
  2842. INT 15 - DESQview v2.50+ - SEND MESSAGE 11h WITH ERROR RECOVERY
  2843.     AH = 12h
  2844.     BH = 91h
  2845. Note:    this function is identical to AH=12h/BH=11h, except that DESQview will
  2846.       not pop up a "Programming Error" window, instead returning an error
  2847.       code in AL (see AH=12h/BH=80h)
  2848. SeeAlso: AH=12h/BH=11h,AH=12h/BX=1100h
  2849. --------Q-1512--BH92-------------------------
  2850. INT 15 - DESQview v2.50+ - SEND MESSAGE 12h WITH ERROR RECOVERY
  2851.     AH = 12h
  2852.     BH = 92h
  2853. Note:    this function is identical to AH=12h/BH=12h, except that DESQview will
  2854.       not pop up a "Programming Error" window, instead returning an error
  2855.       code in AL (see AH=12h/BH=80h)
  2856. SeeAlso: AH=12h/BH=12h,AH=12h/BX=1200h
  2857. --------Q-1512--BH93-------------------------
  2858. INT 15 - DESQview v2.50+ - SEND MESSAGE 13h WITH ERROR RECOVERY
  2859.     AH = 12h
  2860.     BH = 93h
  2861. Note:    this function is identical to AH=12h/BH=13h, except that DESQview will
  2862.       not pop up a "Programming Error" window, instead returning an error
  2863.       code in AL (see AH=12h/BH=80h)
  2864. SeeAlso: AH=12h/BH=13h
  2865. --------Q-1512--BH94-------------------------
  2866. INT 15 - DESQview v2.50+ - SEND MESSAGE 14h WITH ERROR RECOVERY
  2867.     AH = 12h
  2868.     BH = 94h
  2869. Note:    this function is identical to AH=12h/BH=14h, except that DESQview will
  2870.       not pop up a "Programming Error" window, instead returning an error
  2871.       code in AL (see AH=12h/BH=80h)
  2872. SeeAlso: AH=12h/BH=14h
  2873. --------Q-1512--BH95-------------------------
  2874. INT 15 - DESQview v2.50+ - SEND MESSAGE 15h WITH ERROR RECOVERY
  2875.     AH = 12h
  2876.     BH = 95h
  2877. Note:    this function is identical to AH=12h/BH=15h, except that DESQview will
  2878.       not pop up a "Programming Error" window, instead returning an error
  2879.       code in AL (see AH=12h/BH=80h)
  2880. SeeAlso: AH=12h/BH=15h
  2881. --------Q-1512--BH96-------------------------
  2882. INT 15 - DESQview v2.50+ - SEND MESSAGE 16h WITH ERROR RECOVERY
  2883.     AH = 12h
  2884.     BH = 96h
  2885. Note:    this function is identical to AH=12h/BH=16h, except that DESQview will
  2886.       not pop up a "Programming Error" window, instead returning an error
  2887.       code in AL (see AH=12h/BH=80h)
  2888. SeeAlso: AH=12h/BH=16h
  2889. --------T-1513-------------------------------
  2890. INT 15 - VMiX - "sys_wake" - WAKE SLEEPING PROCESS
  2891.     AH = 13h
  2892.     STACK:    WORD    process ID
  2893. Return: AX = status (SYS_OK or SYS_ERROR)
  2894. SeeAlso: AH=12h"VMiX"
  2895. --------T-1513-------------------------------
  2896. INT 15 - MultiDOS Plus - GET TASK CONTROL BLOCK
  2897.     AH = 13h
  2898. Return: BX:AX -> task control block (see below)
  2899. SeeAlso: AH=15h"MultiDOS"
  2900.  
  2901. Format of MultiDOS Plus v4.0 task control block:
  2902. Offset    Size    Description
  2903.  00h    DWORD    pointer to next TCB
  2904.  04h  8 BYTEs    ASCIZ task name
  2905.  0Ch  2 BYTEs    ???
  2906.  0Eh    WORD    task PSP segment
  2907.  10h    WORD    abort/suspend flags
  2908.  12h    WORD    current screen segment (see AH=0Bh,AH=0Ch)
  2909.  14h    WORD    priority level (0000h-FFFEh)
  2910.  16h    WORD    time slice counter
  2911.  18h  2 BYTEs    ???
  2912.  1Ah    WORD    suspend timer value
  2913.  1Ch    WORD    stack segment
  2914.  1Eh    WORD    stack pointer
  2915.  20h    WORD    display type
  2916.  22h    WORD    display memory
  2917.  24h  2 BYTEs    ???
  2918.  26h    WORD    termination count
  2919.  28h    WORD    equipment flag for BIO10 driver
  2920.  2Ah    BYTE    background CRT mode
  2921.  2Bh    WORD    screen width in columns
  2922.  2Dh    WORD    screen size in bytes
  2923.  2Fh    WORD    segment of physical screen memory
  2924.  31h 16 BYTEs    eight cursor positions
  2925.  41h    WORD    current cursor shape
  2926.  43h    BYTE    active display page
  2927.  44h    WORD    CRT controller I/O port base
  2928.  46h  2 BYTEs    ???
  2929.  48h    WORD    foreground task flag
  2930.  4Ah  6 BYTEs    ???
  2931.  50h    WORD    saved video segment (see AH=0Bh,AH=0Ch)
  2932.  52h    DWORD    old INT 22
  2933.  56h    DWORD    old INT 23
  2934.  5Ah    DWORD    old INT 24
  2935.  5Eh    WORD    top of memory for task
  2936.  60h  4 BYTEs    ???
  2937.  64h    WORD    DTA segment (see INT 21/AH=1Ah)
  2938.  66h    WORD    DTA offset
  2939.  68h  4 BYTEs    ???
  2940.  6Ch    BYTE    current ANSI.SYS attribute
  2941.  6Dh    BYTE    current ANSI.SYS column
  2942.  6Eh    BYTE    current ANSI.SYS row
  2943.  6Fh    BYTE    current ANSI.SYS display state
  2944.  70h    BYTE    maximum ANSI.SYS columns
  2945.  71h    BYTE    current ANSI.SYS page
  2946.  72h    WORD    saved ANSI.SYS cursor position
  2947.  74h    BYTE    ANSI.SYS parameter buffer index
  2948.  75h    BYTE    current ANSI.SYS screen mode
  2949.  76h    BYTE    ANSI.SYS wrap flag
  2950.  77h  6 BYTEs    ANSI.SYS parameter buffer
  2951.  7Dh    BYTE    ANSI.SYS keyboard DSR state
  2952.  7Eh  7 BYTEs    ANSI.SYS keyboard DSR buffer
  2953.  85h  3 BYTEs    ???
  2954.  88h 16 BYTEs    request header for DOS driver calls
  2955.  98h 14 BYTEs    ???
  2956.  A6h    WORD    segment of EMS map if EMS task
  2957.  A8h    WORD    flag: task makes EMS calls
  2958.  AAh    WORD    EMS handle for task
  2959.  ACh    WORD    keyboard shift state
  2960.  AEh 12 BYTEs    ???
  2961.  BAh    WORD    TCB of parent if child task
  2962.  BCh    WORD    termination code
  2963.  BEh    WORD    COM port number
  2964.  C0h  4 BYTEs    ???
  2965.  C4h    WORD    current IRQ number
  2966.  C6h  2 BYTEs    ???
  2967.  C8h    WORD    miscellaneous flag word
  2968.  CAh  2 BYTEs    ???
  2969.  CCh    DWORD    old INT 10
  2970.  D0h    WORD    EMS alternate map set number
  2971.  D2h 414 BYTEs    DOS current disk and directory context (optional)
  2972. --------T-1514-------------------------------
  2973. INT 15 - VMiX - "sys_clrwindow" - CLEAR WINDOW
  2974.     AH = 14h
  2975.     STACK:    WORD    top left corner of window (high byte = row, low = col)
  2976.         WORD    bottom right corner of window (high = row, low = col)
  2977. Return: AX = status (SYS_OK)
  2978. Note:    clears window to color set with "sys_setcolors" (AH=18h)
  2979. SeeAlso: AH=15h"VMiX",AH=16h"VMiX",AH=18h"VMiX",AH=1Fh"VMiX"
  2980. --------T-1514-------------------------------
  2981. INT 15 - MultiDOS Plus - CHECK IF MultiDOS FOREGROUND OR BACKGROUND
  2982.     AH = 14h
  2983. Return: AX = current state
  2984.         0000h MultiDOS Plus command prompt is background task
  2985.         0001h command prompt is foreground task
  2986. SeeAlso: AH=0Bh"MultiDOS"
  2987. --------T-1515-------------------------------
  2988. INT 15 - VMiX - "sys_setbwindow" - SET BANNER WINDOW MESSAGE
  2989.     AH = 15h
  2990.     STACK:    DWORD    pointer to ASCIZ banner    message for top of screen
  2991. Return: AX = status (SYS_OK)
  2992. SeeAlso: AH=14h"VMiX",AH=16h"VMiX"
  2993. --------T-1515-------------------------------
  2994. INT 15 - MultiDOS Plus - GET SYSTEM BLOCK
  2995.     AH = 15h
  2996. Return: BX:AX -> system block (see below)
  2997. SeeAlso: AH=13h"MultiDOS"
  2998.  
  2999. Format of MultiDOS Plus 4.0 system block:
  3000. Offset    Size    Description
  3001.  00h    WORD    segment of system control block
  3002.  02h    WORD    redirection flag set by /NOREDIRECT
  3003.  04h    WORD    no-INT 10 flag set by /NO10
  3004.  06h    DWORD    old INT 10
  3005.  0Ah    DWORD    new INT 10
  3006.  0Eh    DWORD    pointer to WORD with current TCB offset (see AH=13h)
  3007.  12h    DWORD    pointer to WORD with idle task TCB offset
  3008.  16h    DWORD    pointer to WORD with foreground TCB offset
  3009.  1Ah    DWORD    pointer to WORD with MultiDOS TCB offset
  3010.  1Eh    WORD    Task Control Block size
  3011.  20h    WORD    number of TCBs
  3012.  22h    WORD    flag: EMS present
  3013.  24h    WORD    EMS page frame base segment
  3014.  26h    WORD    16K pages in EMS page frame
  3015.  28h    WORD    base segment for conventional memory tasks
  3016.  2Ah    WORD    conventional memory size in paragraphs
  3017.  2Ch    DWORD    pointer to list of queue pointers
  3018. --------T-1516-------------------------------
  3019. INT 15 - VMiX - "sys_setwindow" - SET ROOT WINDOW SIZE AND HOME CURSOR
  3020.     AH = 16h
  3021.     STACK:    DWORD    pointer to I/O Request Packet
  3022.         WORD    top left corner of window (high byte = row, low = col)
  3023.         WORD    bottom right corner of window (high = row, low = col)
  3024. Return: AX = status (SYS_OK or SYS_ERROR)
  3025. SeeAlso: AH=14h"VMiX",AH=17h"VMiX"
  3026. --------T-1516-------------------------------
  3027. INT 15 - MultiDOS Plus - INITIALIZATION
  3028.     AH = 16h
  3029. Note:    used internally during initialization; any other calls will cause
  3030.       unpredicatable results
  3031. --------T-1517-------------------------------
  3032. INT 15 - VMiX - "sys_getcolors" - GET CONSOLE WINDOW COLORS
  3033.     AH = 17h
  3034. Return: AH = foreground color
  3035.     AL = background color
  3036. SeeAlso: AH=16h"VMiX",AH=18h"VMiX"
  3037. --------T-1517-------------------------------
  3038. INT 15 - MultiDOS Plus - MAP IRQ
  3039.     AH = 17h
  3040.     AL = IRQ to map (01h-0Fh)
  3041.     BX = offset of task control block (see AH=13h) to associate with IRQ
  3042. Return: AX = status
  3043.         0000h successful
  3044.         other invalid IRQ
  3045. Note:    the EMS map of the specified TCB is associated with the given interrupt
  3046. SeeAlso: AH=18h"MultiDOS",AH=19h"MultiDOS"
  3047. --------T-1518-------------------------------
  3048. INT 15 - VMiX - "sys_setcolors" - SET CONSOLE COLORS
  3049.     AH = 18h
  3050.     STACK:    WORD    new background/foreground colors
  3051.             bits 3-0: foreground
  3052.             bits 7-4: background
  3053.             bits 15-8: unused
  3054. Return: AX = color
  3055. SeeAlso: AH=14h"VMiX",AH=17h"VMiX",AH=19h"VMiX"
  3056. --------T-1518-------------------------------
  3057. INT 15 - MultiDOS Plus - UNMAP IRQ
  3058.     AH = 18h
  3059.     AL = IRQ to unmap (01h-0Fh)
  3060. Return: AX = status
  3061.         0000h successful
  3062.         0001h invalid IRQ
  3063. Note:    results are unpredictable if the IRQ has not been mapped
  3064. SeeAlso: AH=17h"MultiDOS",AH=19h"MultiDOS"
  3065. --------T-1519-------------------------------
  3066. INT 15 - VMiX v2+ - "sys_setconwn" - SET WINDOW COLORS
  3067.     AH = 19h
  3068.     STACK:    WORD    new background/foreground colors
  3069.             bits 3-0: foreground
  3070.             bits 7-4: background
  3071.             bits 15-8: unused
  3072. Return: AX = color
  3073. SeeAlso: AH=18h"VMiX"
  3074. --------T-1519-------------------------------
  3075. INT 15 - MultiDOS Plus - UNMAP ALL IRQs
  3076.     AH = 19h
  3077. Return: AX destroyed
  3078. Note:    for MultiDOS internal use only
  3079. SeeAlso: AH=17h"MultiDOS",AH=18h"MultiDOS"
  3080. --------T-151A-------------------------------
  3081. INT 15 - VMiX v2+ - "sys_sint" - INVOKE SOFTWARE INTERRUPT
  3082.     AH = 1Ah
  3083.     STACK:    WORD    interrupt number
  3084.         DWORD    pointer to register structure
  3085. Return: AX = returned flags
  3086. --------T-151A-------------------------------
  3087. INT 15 - MultiDOS Plus - MAP SEMAPHORE NAME TO NUMBER
  3088.     AH = 1Ah
  3089.     DS:SI -> 8-byte name
  3090. Return: AL = status
  3091.         00h successful
  3092.         AH = semaphore number (20h-3Fh)
  3093.         04h out of string space
  3094. Notes:    all eight bytes of the name are significant
  3095.     if the name does not already exist, it is added to the name table and
  3096.       associated with a free semaphore number
  3097.     names cannot be destroyed
  3098. SeeAlso: AH=1Bh"MultiDOS",AH=1Ch"MultiDOS",AH=1Dh"MultiDOS"
  3099. --------T-151B-------------------------------
  3100. INT 15 - VMiX v2+ - "sys_blkmov" - MOVE MEMORY BLOCK
  3101.     AH = 1Bh
  3102.     STACK:    DWORD    source address
  3103.         DWORD    destination address
  3104.         WORD    number of words to move
  3105. Return: nothing
  3106. --------T-151B-------------------------------
  3107. INT 15 - MultiDOS Plus - REQUEST RESOURCE SEMAPHORE BY NAME
  3108.     AH = 1Bh
  3109.     DS:SI -> 8-byte name
  3110. Return: AH = status
  3111.         00h successful
  3112.         02h invalid semaphore number
  3113.         03h caller already owns semaphore
  3114.         04h out of string space
  3115. Notes:    (see AH=01h"MultiDOS")
  3116.     equivalent to AH=1Ah followed by AH=01h
  3117. SeeAlso: AH=01h"MultiDOS",AH=1Ah"MultiDOS",AH=1Ch"MultiDOS",AH=1Dh"MultiDOS"
  3118. --------T-151C-------------------------------
  3119. INT 15 - VMiX v2+ - "sys_bitblt" - PUT GRAPHICAL OBJECT AT CURSOR POSITION
  3120.     AH = 1Ch
  3121.     STACK:    WORD    AND/OR pixel with background (00h = OR, 01h = AND)
  3122.         DWORD    pointer to object bitmap
  3123.         WORD    object width in pixels
  3124.         WORD    object height in pixels
  3125. Return: nothing
  3126. SeeAlso: AH=1Dh"VMiX"
  3127. --------T-151C-------------------------------
  3128. INT 15 - MultiDOS Plus - RELEASE RESOURCE SEMAPHORE BY NAME
  3129.     AH = 1Ch
  3130.     DS:SI -> 8-byte name
  3131. Return: AH = status
  3132.         00h successful
  3133.         01h not semaphore owner
  3134.         02h invalid semaphore number
  3135.         04h out of string space
  3136. Notes:    (see AH=02h"MultiDOS")
  3137.     equivalent to AH=1Ah followed by AH=02h
  3138. SeeAlso: AH=02h"MultiDOS",AH=1Ah"MultiDOS",AH=1Bh"MultiDOS",AH=1Dh"MultiDOS"
  3139. --------T-151D-------------------------------
  3140. INT 15 - VMiX v2+ - "sys_getfont" - GET CURRENT CONSOLE GRAPHICS FONT
  3141.     AH = 1Dh
  3142. Return: AX = current font number (00h-03h)
  3143. SeeAlso: AH=1Ch"VMiX",AH=1Eh"VMiX"
  3144. --------T-151D-------------------------------
  3145. INT 15 - MultiDOS Plus - TEST RESOURCE SEMAPHORE BY NAME
  3146.     AH = 1Dh
  3147.     DS:SI -> 8-byte name
  3148. Return; AH = status
  3149.         00h semaphore not in use
  3150.         01h semaphore owned by another task
  3151.         02h invalid semaphore number
  3152.         03h caller owns semaphore
  3153.         04h out of string space
  3154. Notes:    (see AH=10h"MultiDOS")
  3155.     equivalent to AH=1Ah followed by AH=10h
  3156. SeeAlso: AH=10h"MultiDOS",AH=1Ah"MultiDOS",AH=1Bh"MultiDOS",AH=1Ch"MultiDOS"
  3157. --------T-151E-------------------------------
  3158. INT 15 - VMiX v2+ - "sys_setfont" - SET CONSOLE GRAPHICS FONT
  3159.     AH = 1Eh
  3160.     STACK: WORD new font number (00h-03h)
  3161. Return: AX = current font number (00h-03h)
  3162. SeeAlso: AH=1Dh"VMiX"
  3163. --------T-151E00-----------------------------
  3164. INT 15 - MultiDOS Plus - CLEAR EVENT COUNTER
  3165.     AX = 1E00h
  3166.     DX = event/trigger number (00h-3Fh)
  3167. Return: AH = status
  3168.         00h successful
  3169. SeeAlso: AX=1E01h,AX=1E02h
  3170. --------T-151E01-----------------------------
  3171. INT 15 - MultiDOS Plus - TRIGGER EVENT
  3172.     AX = 1E01h
  3173.     DX = event/trigger number (00h-3Fh)
  3174. Return: AH = status
  3175.         00h successful
  3176.         01h invalid event/trigger number
  3177. Notes:    schedules any task waiting for event; if no task is waiting, the event
  3178.       counter is incremented (and will roll over if it was 65535)
  3179.     may be invoked by interrupt handler
  3180. SeeAlso: AX=1E00h,AX=1E02h
  3181. --------T-151E02-----------------------------
  3182. INT 15 - MultiDOS Plus - WAIT FOR EVENT
  3183.     AX = 1E02h
  3184.     DX = event/trigger number (00h-3Fh)
  3185. Return: AH = status
  3186.         00h successful
  3187.         01h invalid event/trigger number
  3188. Note:    if the event counter is zero, the task is suspended until the event is
  3189.       triggered with AX=1E01h; else, the counter is decremented and the
  3190.       call returns immediately
  3191. SeeAlso: AX=1E00h,AX=1E01h
  3192. --------T-151F-------------------------------
  3193. INT 15 - VMiX v2.???+ - "sys_scrollwin" - SCROLL WINDOW
  3194.     AH = 1Fh
  3195.     STACK:    WORD    top left corner of window (high byte = row, low = col)
  3196.         WORD    bottom right corner of window
  3197. Return: AX = status (SYS_OK)
  3198. SeeAlso: AH=14h"VMiX",AH=18h"VMiX"
  3199. --------T-151F-------------------------------
  3200. INT 15 - MultiDOS Plus v4.01 - GET MEMORY PARAMETERS
  3201.     AH = 1Fh
  3202. Return: BX = first segment of conventional memory
  3203.     DX = first segment of EMS swap frame into which MultiDOS will load
  3204.         programs
  3205. --------T-1520-------------------------------
  3206. INT 15 - MultiDOS Plus v4.01 - CHECK IF MULTITASKING ENABLED
  3207.     AH = 20h
  3208. Return: AX = current state
  3209.         0000h multitasking enabled
  3210.         other TCB of task that disabled multitasking
  3211. SeeAlso: AH=0Dh"MultiDOS",AH=13h"MultiDOS"
  3212. --------c-152000-----------------------------
  3213. INT 15 U - DOS 3+ PRINT.COM - DISABLE CRITICAL REGION FLAG
  3214.     AX = 2000h
  3215. Desc:    stop setting user flag on entry to PRINT critical region
  3216. SeeAlso: AX=2001h
  3217. --------c-152001-----------------------------
  3218. INT 15 U - DOS 3+ PRINT.COM - SET CRITICAL REGION FLAG
  3219.     AX = 2001h
  3220.     ES:BX -> byte which is to be incremented while in a DOS call
  3221. Desc:    specify a user flag which PRINT should set to let an interested
  3222.       application know it is in a critical region
  3223. SeeAlso: AX=2000h
  3224. --------O-152010-----------------------------
  3225. INT 15 - OS HOOK - SETUP SYSREQ ROUTINE (AT,XT286,PS50+)
  3226.     AX = 2010h
  3227.     ???
  3228. Return: ???
  3229. SeeAlso: AX=2011h
  3230. --------O-152011-----------------------------
  3231. INT 15 - OS HOOK - COMPLETION OF SYSREQ FUNCTION (AT,XT286,PS50+)
  3232.     AX = 2011h
  3233.     ???
  3234. Return: ???
  3235. SeeAlso: AX=2010h
  3236. --------B-1521-------------------------------
  3237. INT 15 - SYSTEM - POWER-ON SELF-TEST ERROR LOG (PS50+)
  3238.     AH = 21h
  3239.     AL = subfunction
  3240.         00h read POST log
  3241.         01h write POST log
  3242.         BH = device ID
  3243.         BL = error code
  3244. Return: CF set on error
  3245.     AH = status (00h OK, 01h list full, 80h invalid cmd, 86h unsupported)
  3246.     if function 00h:
  3247.        BX = number of error codes stored
  3248.        ES:DI -> error log
  3249. Note:    the log is a series of words, the first byte of which identifies the
  3250.       error code and the second the device.
  3251. --------B-1522-------------------------------
  3252. INT 15 - SYSTEM - later PS/2s - LOCATE ROM BASIC
  3253.     AH = 22h
  3254. Return: CF set on error
  3255.         AH = status (86h if function not supported)
  3256.     CF clear on success
  3257.         AH = 00h
  3258.         ES:BX -> ROM BASIC
  3259. Note:    if this function is not supported, ROM BASIC is at F600h:0000h
  3260. SeeAlso: INT 86"BASIC",INT F0"BASIC"
  3261. --------b-152400-----------------------------
  3262. INT 15 - SYSTEM - later PS/2s - DISABLE A20 GATE
  3263.     AX = 2400h
  3264. Return: CF clear if successful
  3265.         AH = 00h
  3266.     CF set on error
  3267.         AH = status
  3268.             01h keyboard controller is in secure mode
  3269.         86h function not supported
  3270. Note:    also supported by Qualitas 386MAX v6.01+
  3271. SeeAlso: AX=2401h,AX=2402h,AX=2403h
  3272. --------b-152401-----------------------------
  3273. INT 15 - SYSTEM - later PS/2s - ENABLE A20 GATE
  3274.     AX = 2401h
  3275. Return: CF clear if successful
  3276.         AH = 00h
  3277.     CF set on error
  3278.         AH = status
  3279.             01h keyboard controller is in secure mode
  3280.         86h function not supported
  3281. Note:    also supported by Qualitas 386MAX v6.01+
  3282. SeeAlso: AX=2400h,AX=2402h
  3283. --------b-152402-----------------------------
  3284. INT 15 - SYSTEM - later PS/2s - GET A20 GATE STATUS
  3285.     AX = 2402h
  3286. Return: CF clear if successful
  3287.         AH = 00h
  3288.         AL = current state (00h disabled, 01h enabled)
  3289.     CF set on error
  3290.         AH = status
  3291.             01h keyboard controller is in secure mode
  3292.         86h function not supported
  3293. Note:    also supported by Qualitas 386MAX v6.01+
  3294. SeeAlso: AX=2400h,AX=2401h
  3295. --------b-152403-----------------------------
  3296. INT 15 - SYSTEM - later PS/2s - QUERY A20 GAT SUPPORT
  3297.     AX = 2403h
  3298. Return: CF clear if successful
  3299.         AH = 00h
  3300.         BX = status of A20 gate support
  3301.         bit 0: supported with bit 1 of I/O port 92h
  3302.         bit 1: supported on keyboard controller
  3303.         bit 15: additional data is available (location not yet defined)
  3304.     CF set on error
  3305.         AH = status
  3306.             01h keyboard controller is in secure mode
  3307.         86h function not supported
  3308. Note:    also supported by Qualitas 386MAX v6.01+
  3309. --------B-1540-------------------------------
  3310. INT 15 - SYSTEM - READ/MODIFY PROFILES (CONVERTIBLE)
  3311.     AH = 40h
  3312.     AL = subfunction
  3313.         00h get system profile in CX and BX
  3314.         01h set system profile from CX and BX
  3315.         02h get internal modem profile in BX
  3316.         03h set internal modem profile from BX
  3317. Return: CF clear if successful
  3318.         AH = 00h
  3319.     CF set on error
  3320.         AH = status (80h = profile execution failed)
  3321. --------V-154000-----------------------------
  3322. INT 15 - Compaq SLT/286 or Portable 386 - READ LCD/PLASMA TIMEOUT
  3323.     AX = 4000h
  3324. Return: AX = 4000h
  3325.     CL = 00h timeout disabled
  3326.        else timeout in minutes
  3327. SeeAlso: AX=4001h,AX=4600h
  3328. --------V-154001CL00-------------------------
  3329. INT 15 - Compaq SLT/286 or Portable 386 - SET LCD/PLASMA TIMEOUT
  3330.     AX = 4001h
  3331.     CL = 00h timeout disabled
  3332.        else     timeout in minutes
  3333. Return: AL = 00h timeout modified
  3334.          01h timeout cannot be modified
  3335.          40h timeout cannot be modified
  3336.     CL = 00h timeout disabled
  3337.        else timeout in minutes
  3338. SeeAlso: AX=4000h,AX=4601h
  3339. --------B-1541-------------------------------
  3340. INT 15 - SYSTEM - WAIT ON EXTERNAL EVENT (CONVERTIBLE and some others)
  3341.     AH = 41h
  3342.     AL = condition type
  3343.         bits 0-2: condition to wait for
  3344.              0 any external event
  3345.              1 compare and return if equal
  3346.              2 compare and return if not equal
  3347.              3 test and return if not zero
  3348.              4 test and return if zero
  3349.         bit 3:    reserved
  3350.         bit 4:    1=port address, 0=user byte
  3351.         bits 5-7: reserved
  3352.     BH = condition compare or mask value
  3353.     BL = timeout value times 55 milliseconds
  3354.         00h means no timeout
  3355.     DX = I/O port address if AL bit 4 set
  3356.     ES:DI -> user byte if AL bit 4 clear
  3357. Note:    call AH=C0h and examine bit 3 of feature byte 1 to determine whether
  3358.       this function is supported
  3359. SeeAlso: AH=C0h
  3360. --------B-1542-------------------------------
  3361. INT 15 - SYSTEM - REQUEST POWER OFF (CONVERTIBLE,HP 95LX)
  3362.     AH = 42h
  3363.     AL = 00h to use system profile
  3364.          01h to force suspend regardless of system profile
  3365. Note:    the HP 95LX apparently suspends regardless of the value in AL; on
  3366.       power-up, execution will resume following the instruction calling
  3367.       this function
  3368. SeeAlso: AH=44h
  3369. --------b-154280-----------------------------
  3370. INT 15 - Compaq SLT/286 - ENTER STANDBY
  3371.     AX = 4280h
  3372. Return: AH = 42h
  3373.     CF clear if successful
  3374.     CF set if unable to enter standby
  3375. SeeAlso: AX=4600h,AX=5307h/BX=0001h/CX=0001h
  3376. --------B-1543-------------------------------
  3377. INT 15 - SYSTEM - READ SYSTEM STATUS (CONVERTIBLE)
  3378.     AH = 43h
  3379. Return: AL = status bits (see below)
  3380.  
  3381. Bitfields for Convertible system status:
  3382.  bit 0    LCD detached
  3383.  bit 1    reserved
  3384.  bit 2    RS232/parallel adapter powered on
  3385.  bit 3    internal modem powered on
  3386.  bit 4    power activated by alarm
  3387.  bit 5    standby power lost
  3388.  bit 6    external power in use
  3389.  bit 7    power low
  3390. --------B-1544-------------------------------
  3391. INT 15 - SYSTEM - (DE)ACTIVATE INTERNAL MODEM POWER (CONVERTIBLE)
  3392.     AH = 44h
  3393.     AL = 00h to power off
  3394.          01h to power on
  3395. SeeAlso: AH=42h
  3396. --------b-154600-----------------------------
  3397. INT 15 - Compaq SLT/286 - READ POWER CONSERVATION/MODEM CONFIGURATION
  3398.     AX = 4600h
  3399. Return: AH = modem configuration information
  3400.         bit 0 powerup state
  3401.             0 off
  3402.             1 on
  3403.         1 modem installed
  3404.         2 IRQ line assignment
  3405.             0 IRQ 4
  3406.             1 IRQ 3
  3407.         3 COM port assignment
  3408.             0 = COM 2
  3409.             1 = COM 1
  3410.         4 modem state
  3411.             0 not assigned
  3412.             1 assigned
  3413.         5 modem is on
  3414.     AL = power conservation status information
  3415.         bit 0  power source (0 internal, 1 external)
  3416.            1-2 low battery state
  3417.             00 no low battery condition
  3418.             01 low battery 1
  3419.             10 reserved
  3420.             11 low battery 2
  3421.            3-4 power conservation mode
  3422.             00 automatic
  3423.             01 on
  3424.             10 off
  3425.             11 reserved
  3426.     BH = default system inactivity timeout (1-21 minutes)
  3427.     BL = current system inactivity timeout (1-21 minutes)
  3428.     CH = default video display inactivity timeout (1-63 minutes)
  3429.     CL = current video display inactivity timeout (1-63 minutes)        
  3430.     DH = default fixed disk drive inactivity timeout (1-21 minutes)
  3431.     DL = current fixed disk drive inactivity timeout (1-21 minutes)
  3432. SeeAlso: AX=4280h,AX=4601h,INT 77
  3433. --------b-154601-----------------------------
  3434. INT 15 - Compaq SLT/286 - Modify Power Conservation/Modem Configuration
  3435.     AX = 4601h
  3436.     BL = system inactivity timeout (1-21 minutes)
  3437.        = FFh do not change
  3438.     CL = video display inactivity timeout (1-63 minutes)        
  3439.        = FFh do not change
  3440.     DL = current fixed disk drive inactivity timeout (1-21 minutes)
  3441.        = FFh do not change
  3442.     DH = 00h turn modem OFF
  3443.        = 01h turn modem ON
  3444.        = FFh do not change modem state
  3445. Return: CF clear if successful
  3446.         AH = 00h
  3447.         BL = current system inactivity timeout (1-21 minutes)
  3448.         CL = current video display inactivity timeout (1-63 minutes)    
  3449.         DL = current fixed disk drive inactivity timeout (1-21 minutes)
  3450.         DH = FFh modem state unchanged
  3451.            = 00h modem turned OFF
  3452.            = 01h modem turned ON
  3453.     CF set on error
  3454.         AH = 01h input is out of range
  3455.            = 02h - No modem present
  3456. SeeAlso: AX=4600h,INT 77
  3457. --------D-154900-----------------------------
  3458. INT 15 - Far East MS-DOS - GET DOS TYPE
  3459.     AX = 4900h
  3460. Return: CF clear if successful
  3461.         AH = 00h
  3462.         BL = type of DOS running
  3463.         00h DOS/V
  3464.         01h DOS/J or DOS/K (early IBM Japan versions of MS-DOS)
  3465.     CF set on error
  3466.         AH = 86h (function not supported)
  3467. Note:    in practice, DOS/J returns AH=86h; AX DOS does not support this call
  3468. SeeAlso: INT 21/AH=30h
  3469. --------b-154DD4-----------------------------
  3470. INT 15 - HP 95LX - INSTALLATION CHECK
  3471.     AX = 4DD4h
  3472. Return: BX = 4850h ("HP") if HP 95LX
  3473.         CX = ??? (0101h)
  3474.         DL = ??? (00h)
  3475. SeeAlso: INT 0B"HP 95LX",INT 0F"HP 95LX",INT 5F/AH=00h,INT 60/DI=0100h
  3476. SeeAlso: INT 61"HP 95LX"
  3477. --------b-154E-------------------------------
  3478. INT 15 - HP 95LX - ENABLE/DISABLE LIGHT SLEEP
  3479.     AH = 4Eh
  3480.     AL = light sleep
  3481.         00h disabled
  3482.         01h enabled
  3483. Note:    when light sleep is disabled, the system will continue running at full
  3484.       speed; when enabled, it may automatically slow to conserve batteries
  3485. SeeAlso: INT 06"HP 95LX",INT 60/DI=0100h
  3486. --------B-154F-------------------------------
  3487. INT 15 C - KEYBOARD - KEYBOARD INTERCEPT (AT model 3x9,XT2,XT286,CONV,PS)
  3488.     AH = 4Fh
  3489.     AL = hardware scan code
  3490.     CF set
  3491. Return: CF set
  3492.        AL = hardware scan code
  3493.     CF clear
  3494.        scan code should be ignored
  3495. Note:    called by INT 9 handler to translate scan codes; the INT 09 code does
  3496.       not examine the scan code it reads from the keyboard until after
  3497.       this function returns.  This permits software to rearrange the
  3498.       keyboard; for example, swapping the CapsLock and Control keys, or
  3499.       turning the right Shift key into Enter.
  3500. SeeAlso: INT 09,INT 15/AH=C0h
  3501. --------T-1550-------------------------------
  3502. INT 15 - VMIX v2.???+ - "sys_vm_page" - SET NEW VIRTUAL PAGE TABLE
  3503.     AH = 50h
  3504.     BX = segment of page directory table
  3505.     CX = page number of page table
  3506. SeeAlso: AH=10h"VMiX",AH=51h"VMiX",AH=52h"VMiX"
  3507. --------T-1551-------------------------------
  3508. INT 15 - VMiX v2.???+ - "sys_vm_func" - EXECUTE FUNCTION IN PROTECTED MODE
  3509.     AH = 51h
  3510.     STACK:    DWORD    selector:offset of function
  3511. Return: registers as returned by function
  3512. Note:    executes function with privilege level 0 (highest privilege)
  3513. SeeAlso: AH=10h"VMiX",AH=52h"VMiX"
  3514. --------B-155101-----------------------------
  3515. INT 15 - SYSTEM - later PS/2s - EXPANSION UNIT, RETURN CONFIGURATION NUMBER
  3516.     AX = 5101h
  3517. Return: CF set if successful
  3518.         AH = 00h
  3519.         AL = current configuration number
  3520.         00h system unit only
  3521.         FFh configuration not recognized
  3522.         BX = status flag
  3523.         bits 0-14: reserved
  3524.         bit 15: additional data is available (location TBD)
  3525.     CF clear on error
  3526.         AH = status
  3527.             01h expansion unit is not present
  3528.             86h function not supported
  3529. Note:    CF convention is the reverse of the standard convention for this
  3530.       interrupt.  (Perhaps a typo in the IBM BIOS Tech Ref?)
  3531. --------T-1552-------------------------------
  3532. INT 15 - VMiX v2.???+ - "sys_vm_init" - INITIALIZE PROTECTED-MODE ENVIRONMENT
  3533.     AH = 52h
  3534. SeeAlso: AH=50h"VMiX",AH=51h"VMiX"
  3535. --------p-155300BX0000-----------------------
  3536. INT 15 - Advanced Power Management Specification - INSTALLATION CHECK
  3537.     AX = 5300h
  3538.     BX = 0000h (device ID of system BIOS)
  3539. Return: CF clear if successful
  3540.         AH = major version (BCD)
  3541.         AL = minor version (BCD)
  3542.         BX = 504Dh ("PM")
  3543.         CX = flags
  3544.         bit 0: 16-bit protected mode interface supported
  3545.         bit 1: 32-bit protected mode interface supported
  3546.         bit 2: CPU idle call reduces processor speed
  3547.         bit 3: BIOS power management disabled
  3548.         bits 4-7 reserved
  3549.     CF set on error
  3550.         AH = error code (86h) (see below)
  3551.  
  3552. Values for error code:
  3553.  01h    power management functionality disabled
  3554.  02h    interface connection already in effect
  3555.  03h    interface not connected
  3556.  04h    real-mode interface not connected
  3557.  05h    16-bit protected-mode interface already connected
  3558.  06h    16-bit protected-mode interface not supported
  3559.  07h    32-bit protected-mode interface already connected
  3560.  08h    32-bit protected-mode interface not supported
  3561.  09h    unrecognized device ID
  3562.  0Ah    invalid parameter value in CX
  3563.  0Bh-1Fh reserved for other interface and general errors
  3564.  20h-3Fh reserved for CPU errors
  3565.  40h-5Fh reserved for device errors
  3566.  60h    can't enter requested state
  3567.  61h-7Fh reserved for other system errors
  3568.  80h    no power management events pending
  3569.  81h-85h reserved for other power management event errors
  3570.  86h    APM not present
  3571.  87h-9Fh reserved for other power management event errors
  3572. --------p-155301BX0000-----------------------
  3573. INT 15 - Advanced Power Management Specification - CONNECT REAL-MODE INTERFACE
  3574.     AX = 5301h
  3575.     BX = 0000h (device ID of system BIOS)
  3576. Return: CF clear if successful
  3577.     CF set on error
  3578.         AH = error code (02h,09h) (see AX=5300h)
  3579. SeeAlso: AX=5302h,AX=5303h,AX=5304h
  3580. --------p-155302BX0000-----------------------
  3581. INT 15 R - Advanced Power Management Spec - CONNECT 16-BIT PROTMODE INTERFACE
  3582.     AX = 5302h
  3583.     BX = 0000h (device ID of system BIOS)
  3584. Return: CF clear if successful
  3585.         AX = real-mode segment base address of protected-mode 16-bit code
  3586.         segment
  3587.         BX = offset of entry point
  3588.         CX = real-mode segment base address of protected-mode 16-bit data
  3589.         segment
  3590.     CF set on error
  3591.         AH = error code (05h,06h,09h) (see AX=5300h)
  3592. Notes:    the caller must initialize two consecutive descriptors with the
  3593.       returned segment base addresses; these descriptors must be valid
  3594.       whenever the protected-mode interface is called, and will have
  3595.       their limits arbitrarily set to 64K.
  3596.     the protected mode interface is invoked by making a far call with the
  3597.       same register values as for INT 15; it must be invoked while CPL=0,
  3598.       the code segment descriptor must have a DPL of 0, the stack must be
  3599.       in a 16-bit segment and have enough room for BIOS use and possible
  3600.       interrupts, and the current I/O permission bit map must allow access
  3601.       to the I/O ports used for power management.
  3602.     functions 00h-03h are not available from protected mode
  3603. SeeAlso: AX=5301h,AX=5303h,AX=5304h
  3604. --------p-155303BX0000-----------------------
  3605. INT 15 - Advanced Power Management Spec - CONNECT 32-BIT PROTMODE INTERFACE
  3606.     AX = 5303h
  3607.     BX = 0000h (device ID of system BIOS)
  3608. Return: CF clear if successful
  3609.         AX = real-mode segment base address of protected-mode 32-bit code
  3610.         segment
  3611.         EBX = offset of entry point
  3612.         CX = real-mode segment base address of protected-mode 16-bit code
  3613.         segment
  3614.         DX = real-mode segment base address of protected-mode 16-bit data
  3615.         segment
  3616.     CF set on error
  3617.         AH = error code (07h,08h,09h) (see AX=5300h)
  3618. Notes:    the caller must initialize three consecutive descriptors with the
  3619.       returned segment base addresses for 32-bit code, 16-bit code, and
  3620.       16-bit data, respectively; these descriptors must be valid whenever
  3621.       the protected-mode interface is called, and will have their limits
  3622.       arbitrarily set to 64K.
  3623.     the protected mode interface is invoked by making a far call to the
  3624.       32-bit code segment with the same register values as for INT 15; it
  3625.       must be invoked while CPL=0, the code segment descriptor must have a
  3626.       DPL of 0, the stack must be in a 32-bit segment and have enough room
  3627.       for BIOS use and possible interrupts, and the current I/O permission
  3628.       bit map must allow access to the I/O ports used for power management.
  3629.     functions 00h-03h are not available from protected mode
  3630. SeeAlso: AX=5301h,AX=5302h,AX=5304h
  3631. --------p-155304BX0000-----------------------
  3632. INT 15 - Advanced Power Management Specification - DISCONNECT INTERFACE
  3633.     AX = 5304h
  3634.     BX = 0000h (device ID of system BIOS)
  3635. Return: CF clear if successful
  3636.     CF set on error
  3637.         AH = error code (03h,09h) (see AX=5300h)
  3638. SeeAlso: AX=5301h,AX=5302h,AX=5303h
  3639. --------p-155305-----------------------------
  3640. INT 15 - Advanced Power Management Specification - CPU IDLE
  3641.     AX = 5305h
  3642. Return: after system leaves idle state
  3643.     CF clear
  3644. Notes:    call when the system is idle and should be suspended until the next
  3645.       system event or interrupt
  3646.     should not be called from within a hardware interrupt handler to avoid
  3647.       reentrance problems
  3648.     if an interrupt causes the system to resume normal processing, the
  3649.       interrupt may or may not have been handled when the BIOS returns
  3650.       from this call; thus, the caller should allow interrupts on return
  3651.     interrupt handlers may not retain control if the BIOS allows
  3652.       interrupts while in idle mode even if they are able to determine
  3653.       that they were called from idle mode
  3654.     the caller should issue this call continuously in a loop until it needs
  3655.       to perform some processing of its own
  3656. SeeAlso: AX=1000h,AX=5306h,INT 2F/AX=1680h
  3657. --------p-155306-----------------------------
  3658. INT 15 - Advanced Power Management Specification - CPU BUSY
  3659.     AX = 5306h
  3660. Return: CF clear
  3661. Notes:    called to ensure that the system runs at full speed even on systems
  3662.       where the BIOS is unable to recognize increased activity (especially
  3663.       if interrupts are hooked by other programs and not chained to the
  3664.       BIOS)
  3665.     this call may be made even when the system is already running at full
  3666.       speed, but it will create unnecessary overhead
  3667.     should not be called from within a hardware interrupt handler to avoid
  3668.       reentrance problems
  3669. SeeAlso: AX=5305h
  3670. --------p-155307-----------------------------
  3671. INT 15 - Advanced Power Management Specification - SET POWER STATE
  3672.     AX = 5307h
  3673.     BX = device ID (see below)
  3674.     CX = system state ID
  3675.         0000h ready (not supported for device ID 0001h)
  3676.         0001h stand-by
  3677.         0002h suspend
  3678.         0003h off (not supported for device ID 0001h)
  3679.         0004h-FFFFh reserved
  3680. Return: CF clear if successful
  3681.     CF set on error
  3682.         AH = error code (01h,09h,0Ah,60h) (see AX=5300h)
  3683. Note:    should not be called from within a hardware interrupt handler to avoid
  3684.       reentrance problems
  3685.  
  3686. Values for device IDs:
  3687.  0000h    system BIOS
  3688.  0001h    all devices for which the system BIOS manages power
  3689.  01xxh    display (01FFh for all attached display devices)
  3690.  02xxh    secondary storage (02FFh for all attached secondary storage devices)
  3691.  03xxh    parallel ports (03FFh for all attached parallel ports)
  3692.  04xxh    serial ports (04FFh for all attached serial ports)
  3693.  0500h-FFFFh reserved
  3694. --------p-155307BX0001-----------------------
  3695. INT 15 - Advanced Power Management Specification - SYSTEM STAND-BY
  3696.     AX = 5307h
  3697.     BX = 0001h
  3698.     CX = 0001h
  3699. Return: CF clear
  3700. Notes:    puts the entire system into stand-by mode; normally called in response
  3701.       to a System Stand-by Request notification after any necessary
  3702.       processing, but may also be invoked at the caller's discretion
  3703.     should not be called from within a hardware interrupt handler to avoid
  3704.       reentrance problems
  3705.     the stand-by state is typically exited on an interrupt
  3706. SeeAlso: AX=4280h,AX=5307h/BX=0001h/CX=0002h,AX=530Bh
  3707. --------p-155307BX0001-----------------------
  3708. INT 15 - Advanced Power Management Specification - SUSPEND SYSTEM
  3709.     AX = 5307h
  3710.     BX = 0001h
  3711.     CX = 0002h
  3712. Return: after system is resumed
  3713.     CF clear
  3714. Notes:    puts the entire system into a low-power suspended state; normally
  3715.       called in response to a Suspend System Request notification after
  3716.       any necessary processing, but may also be invoked at the caller's
  3717.       discretion
  3718.     should not be called from within a hardware interrupt handler to avoid
  3719.       reentrance problems
  3720.     the caller may need to update its date and time values because the
  3721.       system could have been suspended for a long period of time
  3722. SeeAlso: AX=5307h/BX=0001h/CX=0001h,AX=530Bh
  3723. --------p-155308BXFFFF-----------------------
  3724. INT 15 - Advanced Power Management Spec - ENABLE/DISABLE POWER MANAGEMENT
  3725.     AX = 5308h
  3726.     BX = FFFFh
  3727.     CX = new state
  3728.         0000h disabled
  3729.         0001h enabled
  3730. Return: CF clear if successful
  3731.     CF set on error
  3732.         AH = error code (01h,09h,0Ah) (see AX=5300h)
  3733. Notes:    when power management is disabled, the system BIOS will not
  3734.       automatically power down devices, enter stand-by or suspended mode,
  3735.       or perform any power-saving actions in response to AX=5305h calls
  3736.     should not be called from within a hardware interrupt handler to avoid
  3737.       reentrance problems
  3738. SeeAlso: AX=5309h
  3739. --------p-155309BXFFFF-----------------------
  3740. INT 15 - Advanced Power Management Specification - RESTORE POWER-ON DEFAULTS
  3741.     AX = 5309h
  3742.     BX = FFFFh
  3743. Return: CF clear if successful
  3744.     CF set on error
  3745.         AH = error code (09h) (see AX=5300h)
  3746. Note:    should not be called from within a hardware interrupt handler to avoid
  3747.       reentrance problems
  3748. SeeAlso: AX=5308h
  3749. --------p-15530ABX0001-----------------------
  3750. INT 15 - Advanced Power Management Specification - GET POWER STATUS
  3751.     AX = 530Ah
  3752.     BX = 0001h
  3753. Return: CF clear if successful
  3754.         BH = AC line status
  3755.         00h off-line
  3756.         01h on-line
  3757.         FFh unknown
  3758.         other reserved
  3759.         BL = battery status
  3760.         00h high
  3761.         01h low
  3762.         02h critical
  3763.         03h charging
  3764.         FFh unknown
  3765.         other reserved
  3766.         CL = remaining battery life
  3767.         00h-64h (0-100) percentage of full charge
  3768.         FFh unknown
  3769.     CF set on error
  3770.         AH = error code (09h) (see AX=5300h)
  3771. Note:    should not be called from within a hardware interrupt handler to avoid
  3772.       reentrance problems
  3773. --------p-15530B-----------------------------
  3774. INT 15 - Advanced Power Management Specification - GET POWER MANAGEMENT EVENT
  3775.     AX = 530Bh
  3776. Return: CF clear if successful
  3777.         BX = event code
  3778.         0001h system stand-by request
  3779.         0002h system suspend request
  3780.         0003h normal resume system notification
  3781.         0004h critical resume system notification
  3782.         0005h battery low notification
  3783.     CF set on error
  3784.         AH = error code (03h,80h) (see AX=5300h)
  3785. Notes:    although power management events are often asynchronous, notification
  3786.       will not be made until polled via this call to permit software to
  3787.       only receive event notification when it is prepared to process
  3788.       power management events; since these events are not very time-
  3789.       critical, it should be sufficient to poll once or twice per second
  3790.     the critical resume notification is made after the system resumes
  3791.       from an emergency suspension; normally, the system BIOS only notifies
  3792.       its partner that it wishes to suspend and relies on the partner to
  3793.       actually request the suspension, but no notification is made on an
  3794.       emergency suspension
  3795.     should not be called from within a hardware interrupt handler to avoid
  3796.       reentrance problems
  3797. SeeAlso: AX=5307h,AX=5307h/BX=0001h/CX=0001h,AX=5307h/BX=0001h/CX=0002h
  3798. --------T-155400-----------------------------
  3799. INT 15 C - Omniview Multitasker - INSTALLATION NOTIFICATION
  3800.     AX = 5400h
  3801.     ES:BX -> device information tables
  3802.     DI:DX -> dispatcher entry point
  3803. Note:    called by OmniView to notify programs loaded before OmniView of state
  3804.       changes inside OmniView
  3805. SeeAlso: AX=5407h,INT 2F/AX=DE00h
  3806. --------T-155401-----------------------------
  3807. INT 15 C - Omniview Multitasker - PROCESS CREATION
  3808.     AX = 5401h
  3809.     ES:BX = process handle
  3810. Note:    called by OmniView to notify programs loaded before OmniView of state
  3811.       changes inside OmniView
  3812. SeeAlso: AX=5402h,INT 2F/AX=DE04h
  3813. --------T-155402-----------------------------
  3814. INT 15 C - Omniview Multitasker - PROCESS DESTRUCTION
  3815.     AX = 5402h
  3816.     ES:DX = process handle
  3817. Note:    called by OmniView to notify programs loaded before OmniView of state
  3818.       changes inside OmniView
  3819. SeeAlso: AX=5401h,INT 2F/AX=DE05h
  3820. --------T-155403-----------------------------
  3821. INT 15 C - Omniview Multitasker - SAVE
  3822.     AX = 5403h
  3823.     ES:DX = process swapping out
  3824. Note:    called by OmniView to notify programs loaded before OmniView of state
  3825.       changes inside OmniView
  3826. SeeAlso: AX=5404h,INT 2F/AX=DE08h
  3827. --------T-155404-----------------------------
  3828. INT 15 C - Omniview Multitasker - RESTORE
  3829.     AX = 5404h
  3830.     ES:DX = process swapping in
  3831. Note:    called by OmniView to notify programs loaded before OmniView of state
  3832.       changes inside OmniView
  3833. SeeAlso: AX=5403h,INT 2F/AX=DE09h
  3834. --------T-155405-----------------------------
  3835. INT 15 C - Omniview Multitasker - SWITCHING TO BACKGROUND
  3836.     AX = 5405h
  3837.     ES:DX = process swapping in
  3838. Note:    called by OmniView to notify programs loaded before OmniView of state
  3839.       changes inside OmniView
  3840. SeeAlso: AX=5406h
  3841. --------T-155406-----------------------------
  3842. INT 15 C - Omniview Multitasker - SWITCHING TO FOREGROUND
  3843.     AX = 5406h
  3844.     ES:DX = process swapping in
  3845. Note:    called by OmniView to notify programs loaded before OmniView of state
  3846.       changes inside OmniView
  3847. SeeAlso: AX=5405h
  3848. --------T-155407-----------------------------
  3849. INT 15 C - Omniview Multitasker - EXIT NOTIFICATION
  3850.     AX = 5407h
  3851. Note:    called by OmniView to notify programs loaded before OmniView of state
  3852.       changes inside OmniView
  3853. SeeAlso: AX=5400h,INT 2F/AX=DE03h
  3854. --------B-1580-------------------------------
  3855. INT 15 C - OS HOOK - DEVICE OPEN (AT,XT286,PS)
  3856.     AH = 80h
  3857.     BX = device ID
  3858.     CX = process ID
  3859.     CF clear
  3860. Return: CF clear if successful
  3861.         AH = 00h
  3862.     CF set on error
  3863.         AH = status
  3864.         80h invalid command (PC,PCjr)
  3865.         86h function not supported (XT)
  3866. Note:    this function should be hooked by a multitasker which wishes to keep
  3867.       track of device ownership; the default BIOS handler merely returns
  3868.       successfully
  3869. SeeAlso: AH=81h,AH=82h
  3870. --------B-1581-------------------------------
  3871. INT 15 C - OS HOOK - DEVICE CLOSE
  3872.     AH = 81h
  3873.     BX = device ID
  3874.     CX = process ID
  3875.     CF clear
  3876. Return: CF clear if successful
  3877.         AH = 00h
  3878.     CF set on error
  3879.         AH = status (see AH=80h)
  3880. Note:    this function should be hooked by a multitasker which wishes to keep
  3881.       track of device ownership; the default BIOS handler merely returns
  3882.       successfully
  3883. SeeAlso: AH=80h,AH=82h
  3884. --------B-1582-------------------------------
  3885. INT 15 C - OS HOOK - PROGRAM TERMINATION
  3886.     AH = 82h
  3887.     BX = process ID
  3888.     CF clear
  3889. Return: CF clear if successful
  3890.         AH = 00h
  3891.     CF set on error
  3892.         AH = status (see AH=80h)
  3893. Notes:    closes all devices opened by the given process ID with function 80h
  3894.     this function should be hooked by a multitasker which wishes to keep
  3895.       track of device ownership; the default BIOS handler merely returns
  3896.       successfully
  3897. SeeAlso: AH=80h,AH=81h
  3898. --------B-1583-------------------------------
  3899. INT 15 - BIOS - SET EVENT WAIT INTERVAL (AT,PS50+)
  3900.     AH = 83h
  3901.     AL = subfunction
  3902.         00h set interval
  3903.         CX:DX = microseconds to delay
  3904.         ES:BX -> byte whose high bit is to be set at end of interval
  3905.         01h cancel wait interval
  3906. Return: CF set on error or function already busy
  3907.         AH = status
  3908.         80h invalid command (PC,PCjr)
  3909.         86h function not supported (XT and later)
  3910.     CF clear if successful
  3911. Notes:    the resolution of the wait period is 977 microseconds on most systems
  3912.       because most BIOSes use the 1/1024 second fast interrupt from the AT
  3913.       real-time clock chip which is available on INT 70
  3914.     IBM AT 1/10/84 BIOS ignores AL and always performs subfunction 00h
  3915. SeeAlso: AH=86h,INT 70
  3916. --------B-1584-------------------------------
  3917. INT 15 - BIOS - JOYSTICK SUPPORT (XT after 11/8/82,AT,XT286,PS)
  3918.     AH = 84h
  3919.     DX = subfunction
  3920.         0000h read joystick switches
  3921.         Return: AL bits 7-4 = switch settings
  3922.         0001h read positions of joysticks
  3923.         Return: AX = X position of joystick A
  3924.             BX = Y position of joystick A
  3925.             CX = X position of joystick B
  3926.             DX = Y position of joystick B
  3927. Return: CF set on error
  3928.         AH = status
  3929.         80h invalid command (PC,PCjr)
  3930.         86h function not supported (other)
  3931.     CF clear if successful
  3932. Notes:    if no game port is installed, subfunction 0000h returns AL=00h (all
  3933.       switches open) and subfunction 0001h returns AX=BX=CX=DX=0000h
  3934.     a 250kOhm joystick typically returns 0000h-01A0h
  3935. --------B-1585-------------------------------
  3936. INT 15 C - OS HOOK - SysRq KEY ACTIVITY (AT,PS)
  3937.     AH = 85h
  3938.     AL = 00h SysRq key pressed
  3939.        = 01h SysRq key released
  3940.     CF clear
  3941. Return: CF clear if successful
  3942.         AH = 00h
  3943.     CF set on error
  3944.         AH = status (see AH=84h)
  3945. Notes:    called by keyboard decode routine
  3946.     the default handler simply returns successfully; programs which wish
  3947.       to monitor the SysRq key must hook this call
  3948. SeeAlso: INT 09
  3949. --------B-1586-------------------------------
  3950. INT 15 - BIOS - WAIT (AT,PS)
  3951.     AH = 86h
  3952.     CX:DX = interval in microseconds
  3953. Return: CF clear if successful (wait interval elapsed)
  3954.     CF set on error or AH=83h wait already in progress
  3955.         AH = status (see AH=84h)
  3956. Note:    the resolution of the wait period is 977 microseconds on most systems
  3957.       because most BIOSes use the 1/1024 second fast interrupt from the AT
  3958.       real-time clock chip which is available on INT 70
  3959. SeeAlso: AH=83h,INT 1A/AX=FF01h,INT 70
  3960. --------B-1587-------------------------------
  3961. INT 15 - SYSTEM - COPY EXTENDED MEMORY
  3962.     AH = 87h
  3963.     CX = number of words to copy (max 8000h)
  3964.     ES:SI -> global descriptor table
  3965. Return: CF set on error
  3966.     CF clear if successful
  3967.     AH = status
  3968.         00h source copied into destination
  3969.         01h parity error
  3970.         02h interrupt error
  3971.         03h address line 20 gating failed
  3972.         80h invalid command (PC,PCjr)
  3973.         86h unsupported function (XT,PS30)
  3974. Notes:    copy is done in protected mode with interrupts disabled
  3975.     this function is incompatible with the OS/2 compatibility box
  3976. SeeAlso: AH=88h,AH=89h
  3977.  
  3978. Format of global descriptor table:
  3979. Offset    Size    Description
  3980.  00h 16 BYTEs    zeros
  3981.  10h    WORD    source segment length in bytes (2*CX-1 or greater)
  3982.  12h  3 BYTEs    24-bit linear source address, low byte first
  3983.  15h    BYTE    source segment access rights (93h)
  3984.  16h    WORD    zero
  3985.  18h    WORD    destination segment length in bytes (2*CX-1 or greater)
  3986.  1Ah  3 BYTEs    24-bit linear destination address, low byte first
  3987.  1Dh    BYTE    destination segment access rights (93h)
  3988.  1Eh 18 BYTEs    zeros
  3989. --------B-1588-------------------------------
  3990. INT 15 - SYSTEM - GET EXTENDED MEMORY SIZE (286+)
  3991.     AH = 88h
  3992. Return: CF clear if successful
  3993.         AX = number of contiguous KB starting at absolute address 100000h
  3994.     CF set on error
  3995.         AH = status
  3996.         80h invalid command (PC,PCjr)
  3997.         86h unsupported function (XT,PS30)
  3998. Notes:    TSRs which wish to allocate extended memory to themselves often hook
  3999.       this call, and return a reduced memory size.    They are then free to
  4000.       use the memory between the new and old sizes at will.
  4001.     the standard BIOS only returns memory between 1MB and 16MB; use AH=C7h
  4002.       for memory beyond 16MB
  4003. SeeAlso: AH=87h,AH=C7h
  4004. --------B-1589-------------------------------
  4005. INT 15 - SYSTEM - SWITCH TO PROTECTED MODE
  4006.     AH = 89h
  4007.     BL = interrupt number of IRQ0 (IRQ1-7 use next 7 interrupts)
  4008.     BH = interrupt number of IRQ8 (IRQ9-F use next 7 interrupts)
  4009.     ES:SI -> GDT for protected mode
  4010.            offset 0h  null descriptor (initialize to zeros)
  4011.               8h  GDT descriptor
  4012.              10h  IDT descriptor
  4013.              18h  DS
  4014.              20h  ES
  4015.              28h  SS
  4016.              30h  CS
  4017.              38h  uninitialized, used to build descriptor for BIOS CS
  4018.     CX = offset into protected-mode CS to jump to
  4019. Return: CF set on error
  4020.        AH = FFh  error enabling address line 20
  4021.     CF clear if successful
  4022.        AH = 00h
  4023.        in protected mode at specified address
  4024. Note:    BL and BH must be multiples of 8
  4025. SeeAlso: AH=87h,AH=88h,INT 67/AX=DE0Ch
  4026. --------B-1590-------------------------------
  4027. INT 15 - OS HOOK - DEVICE BUSY (AT,PS)
  4028.     AH = 90h
  4029.     AL = device type
  4030.         00h disk
  4031.         01h diskette
  4032.         02h keyboard
  4033.         03h PS/2 pointing device
  4034.         21h waiting for keyboard input (Phoenix BIOS)
  4035.         80h network
  4036.         FBh digital sound (Tandy)
  4037.         FCh disk reset (PS)
  4038.         FDh diskette motor start
  4039.         FEh printer
  4040.     ES:BX -> request block for type codes 80h through BFh
  4041.     CF clear
  4042. Return: CF set if wait time satisfied
  4043.     CF clear if driver must perform wait
  4044.         AH = 00h
  4045. Notes:    type codes are allocated as follows:
  4046.       00-7F non-reentrant devices; OS must arbitrate access
  4047.       80-BF reentrant devices; ES:BX points to a unique control block
  4048.       C0-FF wait-only calls, no complementary INT 15/AH=91h call
  4049.     floppy and hard disk BIOS code uses this call to implement a timeout;
  4050.       for device types 00h and 01h, a return of CF set means that the
  4051.       timeout expired before the disk responded.
  4052.     this function should be hooked by a multitasker to allow other tasks
  4053.       to execute while the BIOS is waiting for I/O completion; the default
  4054.       handler merely returns with AH=00h and CF clear
  4055. SeeAlso: AH=91h,INT 13/AH=00h,INT 17/AH=00h,INT 1A/AH=83h
  4056. --------B-1591-------------------------------
  4057. INT 15 - OS HOOK - DEVICE POST (AT,PS)
  4058.     AH = 91h
  4059.     AL = device type (see AH=90h)
  4060.     ES:BX -> request block for type codes 80h through BFh
  4061.     CF clear
  4062. Return: AH = 00h
  4063. Note:    this function should be hooked by a multitasker to allow other tasks
  4064.       to execute while the BIOS is waiting for I/O completion; the default
  4065.       handler merely returns with AH=00h and CF clear
  4066. SeeAlso: AH=90h
  4067. --------b-15BC-------------------------------
  4068. INT 15 - Phoenix 386 BIOS - DETERMINE CPU SPEED
  4069.     AH = BCh
  4070. Return: CF clear
  4071.     BYTE 0040h:00B0h set to ??? (43 on my 386/33)
  4072. Note:    reads system timer channel 0 twice, then does calculations on returned
  4073.       values
  4074. --------E-15BF00-----------------------------
  4075. INT 15 - Rational Systems DOS/16M - ???
  4076.     AX = BF00h
  4077.     ???
  4078. Return: ???
  4079. Note:    under DESQview/X 1.02 DVDOS4GX.DVR, this call is identical to AX=BF02h
  4080. SeeAlso: AX=BF02h
  4081. --------E-15BF01-----------------------------
  4082. INT 15 - Rational Systems DOS/16M - ???
  4083.     AX = BF01h
  4084.     ???
  4085. Return: ???
  4086. Notes:    under DESQview/X 1.02 DVDOS4GX.DVR, this call is identical to AX=BF02h
  4087.     called by DOS/4GW
  4088. SeeAlso: AX=BF00h,AX=BF02h
  4089. --------E-15BF02DX0000-----------------------
  4090. INT 15 - Rational Systems DOS/16M - INSTALLATION CHECK
  4091.     AX = BF02h
  4092.     DX = 0000h
  4093. Return: DX = nonzero if installed
  4094.         DX:SI -> XBRK structure (see below)
  4095. Note:    this function is also supported by DOS/4G
  4096. SeeAlso: AX=BF01h,AX=BFDCh,AX=BFDEh/BX=0000h
  4097. SeeAlso: INT 21/AH=FFh/DH=0Eh,INT 2F/AH=A1h,INT 2F/AX=F100h,INT 2F/AX=FBA1h
  4098.  
  4099. Format of XBRK structure:
  4100. Offset    Size    Description
  4101.  00h    DWORD    linear address of first available byte
  4102.  04h    DWORD    linear address of last available byte + 1 ???
  4103.  08h    DWORD    real-mode address of XBRK structure???
  4104.  0Ch    DWORD    ???
  4105.  10h  2 BYTEs    ???
  4106.  12h    WORD    segment of ???
  4107.  14h  8 BYTEs    ???
  4108.  1Ch 512 BYTEs    protected-mode IDT
  4109. 21Ch  N BYTEs    protected-mode GDT
  4110. --------E-15BF03-----------------------------
  4111. INT 15 - Rational Systems DOS/4GW - UNINSTALL???
  4112.     AX = BF03h
  4113.     BX = PSP segment of extender
  4114.     ???
  4115. Return: ???
  4116. Note:    if BX is not the PSP segment of the extender, it passes the call down
  4117.       the INT 15 chain; this allows nested instances of the extender
  4118. SeeAlso: AX=BF06h
  4119. --------E-15BF04-----------------------------
  4120. INT 15 - Rational Systems DOS/4GW - ???
  4121.     AX = BF04h
  4122.     BX = PSP segment of extender
  4123. Return: nothing???
  4124. Notes:    if BX is not the PSP segment of the extender, it passes the call down
  4125.       the INT 15 chain; this allows nested instances of the extender
  4126.     grabs INT 2Fh and installs handlers for INT 2F/AX=1605h-1607h
  4127. SeeAlso: INT 2F/AX=1607h/BX=22C0h
  4128. --------E-15BF05-----------------------------
  4129. INT 15 - Rational Systems DOS/4GW - INITIALIZE PROTECTED-MODE INTERFACE
  4130.     AX = BF05h
  4131.     BX = PSP segment of extender
  4132. Return: nothing???
  4133. Notes:    if BX is not the PSP segment of the extender, it passes the call down
  4134.       the INT 15 chain; this allows nested instances of the extender
  4135.     calls INT 67/AX=DE01h if ???
  4136. --------E-15BF06-----------------------------
  4137. INT 15 - Rational Systems DOS/4GW - ???
  4138.     AX = BF06h
  4139.     BX = PSP segment of extender
  4140.     ???
  4141. Return: ???
  4142. Note:    if BX is not the PSP segment of the extender, it passes the call down
  4143.       the INT 15 chain; this allows nested instances of the extender
  4144. SeeAlso: AX=BF03h
  4145. --------E-15BFDCDX0000-----------------------
  4146. INT 15 - Rational Systems DOS/4GW - INSTALLATION CHECK
  4147.     AX = BFDCh
  4148.     DX = 0000h
  4149.     SI = 0000h
  4150. Return: DX = nonzero if installed
  4151.         DX:SI -> XBRK structure (see AX=BF02h)
  4152. SeeAlso: AX=BF02h
  4153. --------E-15BFDEBX0000-----------------------
  4154. INT 15 - DESQview/X - DVDOS4GX.DVR - INSTALLATION CHECK
  4155.     AX = BFDEh
  4156.     BX = 0000h
  4157. Return: AX = ??? (0003h)
  4158.     BX = FFFFh
  4159. SeeAlso: AX=BF02h
  4160. --------E-15BFDEBX0001-----------------------
  4161. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET PROCESS MANAGER NAME
  4162.     AX = BFDEh
  4163.     BX = 0001h
  4164. Return: BX = 0000h (success)
  4165.     CX:DX -> name of process manager executable
  4166. SeeAlso: AX=BFDEh/BX=0000h
  4167. --------E-15BFDEBX0002-----------------------
  4168. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - SET ???
  4169.     AX = BFDEh
  4170.     BX = 0002h
  4171.     CX:DX -> ???
  4172. Return: BX = 0000h (success)
  4173. SeeAlso: AX=BFDEh/BX=0000h,AX=BFDEh/BX=0003h
  4174. --------E-15BFDEBX0003-----------------------
  4175. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET ???
  4176.     AX = BFDEh
  4177.     BX = 0003h
  4178. Return: BX = 0000h (success)
  4179.     CX:DX -> ???
  4180. SeeAlso: AX=BFDEh/BX=0000h,AX=BFDEh/BX=0002h
  4181. --------E-15BFDEBX0004-----------------------
  4182. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - ???
  4183.     AX = BFDEh
  4184.     BX = 0004h
  4185.     CL = ???
  4186. Return: BX = 0000h (success)
  4187.     CX:DX -> XBRK structure (see AX=BF02h)
  4188. SeeAlso: AX=BFDEh/BX=0000h
  4189. --------E-15BFDEBX0005-----------------------
  4190. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - ???
  4191.     AX = BFDEh
  4192.     BX = 0005h
  4193.     CX = new value for ???
  4194. Return: BX = 0000h (success)
  4195.     AX = old value of ???
  4196.     DS:SI -> ??? (if AX nonzero on return)
  4197.     ES:DI -> ??? (if AX zero on return)
  4198. Note:    called by DOS4GW.EXE
  4199. SeeAlso: AX=BFDEh/BX=0000h
  4200. --------E-15BFDEBX0006-----------------------
  4201. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET ???
  4202.     AX = BFDEh
  4203.     BX = 0006h
  4204. Return: BX = 0000h (success)
  4205.     AH = interrupt number??? (BEh)
  4206.     CX:DX = ???
  4207. SeeAlso: AX=BFDEh/BX=0000h,AX=BFDEh/BX=0007h,INT BE"DESQview"
  4208. --------E-15BFDEBX0007-----------------------
  4209. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - SET ???
  4210.     AX = BFDEh
  4211.     BX = 0007h
  4212.     CX:DX = ???
  4213. Return: BX = 0000h (success)
  4214. SeeAlso: AX=BFDEh/BX=0000h,AX=BFDEh/BX=0006h
  4215. --------E-15BFDEBX0008-----------------------
  4216. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - ???
  4217.     AX = BFDEh
  4218.     BX = 0008h
  4219.     CX = segment of ???
  4220.     DS = ???
  4221. Return: BX = status
  4222.         0000h successful
  4223.         AL = ??? (80h or C0h)
  4224.         DX = ??? (0603h) if AL=C0h
  4225.         0001h failed
  4226.         AX = 0000h
  4227. Note:    called by DOS4GW.EXE
  4228. SeeAlso: AX=BFDEh/BX=0000h
  4229. --------E-15BFDEBX0009-----------------------
  4230. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET PROTECTED MODE PROGRAM LOADER
  4231.     AX = BFDEh
  4232.     BX = 0009h
  4233. Return: BX = 0000h (success)
  4234.     CX:DX -> full pathname to LOAD32.EXP
  4235. SeeAlso: AX=BFDEh/BX=0000h
  4236. --------E-15BFDEBX000A-----------------------
  4237. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - DECREMENT ???
  4238.     AX = BFDEh
  4239.     BX = 000Ah
  4240. Return: BX = 0000h (success)
  4241.     AX = new value of ??? counter
  4242. Notes:    also resets a variety of values if the counter goes negative
  4243.     called by DOS4GW.EXE
  4244. SeeAlso: AX=BFDEh/BX=0000h,AX=BFDEh/BX=000Bh
  4245. --------E-15BFDEBX000B-----------------------
  4246. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - INCREMENT ???
  4247.     AX = BFDEh
  4248.     BX = 000Bh
  4249. Return:    AX = new value of ??? counter
  4250. Note:    called by DOS4GW.EXE
  4251. SeeAlso: AX=BFDEh/BX=0000h,AX=BFDEh/BX=000Ah
  4252. --------E-15BFDEBX000C-----------------------
  4253. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - ???
  4254.     AX = BFDEh
  4255.     BX = 000Ch
  4256.     CL = ???
  4257.         00h
  4258.         nonzero
  4259. Return: ???
  4260. SeeAlso: AX=BFDEh/BX=0000h
  4261. --------E-15BFDEBX000D-----------------------
  4262. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - ???
  4263.     AX = BFDEh
  4264.     BX = 000Dh
  4265.     ???
  4266. Return: ???
  4267. SeeAlso: AX=BFDEh/BX=0000h
  4268. --------E-15BFDEBX000E-----------------------
  4269. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - ???
  4270.     AX = BFDEh
  4271.     BX = 000Eh
  4272.     DX:CX -> ???
  4273. Return: AX = segment of handle for calling task
  4274.     BX = ??? (probably destroyed)
  4275.     DX:CX -> ???
  4276. SeeAlso: AX=BFDEh/BX=0000h,AX=BFDEh/BX=000Fh,AX=BFDEh/BX=0013h
  4277. --------E-15BFDEBX000F-----------------------
  4278. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - ???
  4279.     AX = BFDEh
  4280.     BX = 000Fh
  4281. Return: AX = segment of handle for calling task
  4282.     BX = ??? (probably destroyed)
  4283.     DX:CX -> ???
  4284. Note:    identical to AX=BFDEh/BX=000Eh with CX:DX = 0000h:0000h
  4285. SeeAlso: AX=BFDEh/BX=000Eh,AX=BFDEh/BX=0010h
  4286. --------E-15BFDEBX0010-----------------------
  4287. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET TASK HANDLE
  4288.     AX = BFDEh
  4289.     BX = 0010h
  4290. Return: AX = segment of caller's task handle
  4291.     BX destroyed
  4292. SeeAlso: AX=BFDEh/BX=000Fh
  4293. --------E-15BFDEBX0011-----------------------
  4294. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET ???
  4295.     AX = BFDEh
  4296.     BX = 0011h
  4297. Return: CX = code segment of DVDOS4GX.DVR
  4298.     BX = ??? (0004h)
  4299. SeeAlso: AX=BFDEh/BX=0000h
  4300. --------E-15BFDEBX0012-----------------------
  4301. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET ???
  4302.     AX = BFDEh
  4303.     BX = 0012h
  4304. Return: DX = code segment of DVDOS4GX.DVR
  4305.     BX = ??? (012Ch)
  4306.     CX = ??? (0006h)
  4307. SeeAlso: AX=BFDEh/BX=0000h
  4308. --------E-15BFDEBX0013-----------------------
  4309. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET ???
  4310.     AX = BFDEh
  4311.     BX = 0013h
  4312. Return: DX:CX -> ???
  4313. SeeAlso: AX=BFDEh/BX=000Eh
  4314. --------E-15BFDEBX0014-----------------------
  4315. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - LOCK ??? MAILBOX
  4316.     AX = BFDEh
  4317.     BX = 0014h
  4318.     CX = index of ??? mailbox
  4319.         (0000h-0004h valid, but no range checking done)
  4320. Return: AX,BX destroyed
  4321. SeeAlso: AX=BFDEh/BX=0015h,AX=BFDEh/BX=0017h
  4322. --------E-15BFDEBX0015-----------------------
  4323. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - UNLOCK ??? MAILBOX
  4324.     AX = BFDEh
  4325.     BX = 0015h
  4326.     CX = index of ??? mailbox
  4327.         (0000h-0004h valid, but no range checking done)
  4328. Return: AX,BX destroyed
  4329. SeeAlso: AX=BFDEh/BX=0014h,AX=BFDEh/BX=0016h
  4330. --------E-15BFDEBX0016-----------------------
  4331. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - CHECK IF ??? MAILBOX OWNED
  4332.     AX = BFDEh
  4333.     BX = 0016h
  4334.     CX = index of ??? mailbox
  4335.         (0000h-0004h valid, but no range checking done)
  4336. Return: AX = status
  4337.         0000h no one owns mailbox
  4338.         0001h mailbox has an owner
  4339.     BX destroyed
  4340. SeeAlso: AX=BFDEh/BX=0015h,AX=BFDEh/BX=0017h
  4341. --------E-15BFDEBX0017-----------------------
  4342. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET ??? MAILBOX OWNER
  4343.     AX = BFDEh
  4344.     BX = 0017h
  4345.     CX = index of ??? mailbox
  4346.         (0000h-0004h valid, but no range checking done)
  4347. Return: AX = segment of mailbox owner's handle
  4348.     BX = segment of caller's task handle
  4349. SeeAlso: AX=BFDEh/BX=0015h,AX=BFDEh/BX=0016h
  4350. --------E-15BFDEBXFFFD-----------------------
  4351. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - GET ???
  4352.     AX = BFDEh
  4353.     BX = FFFDh
  4354. Return: CX:DX = ???
  4355. SeeAlso: AX=BFDEh/BX=FFFEh
  4356. --------E-15BFDEBXFFFE-----------------------
  4357. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - SET ???
  4358.     AX = BFDEh
  4359.     BX = FFFEh
  4360.     CX:DX = ???
  4361. SeeAlso: AX=BFDEh/BX=FFFDh
  4362. --------E-15BFDEBXFFFF-----------------------
  4363. INT 15 - DESQview/X 1.02+ - DVDOS4GX.DVR - NOP
  4364.     AX = BFDEh
  4365.     BX = FFFFh
  4366. SeeAlso: AX=BFDEh/BX=0000h
  4367. --------B-15C0-------------------------------
  4368. INT 15 - SYSTEM - GET CONFIGURATION (XT after 1/10/86,AT mdl 3x9,CONV,XT286,PS)
  4369.     AH = C0h
  4370. Return: CF set if BIOS doesn't support call
  4371.     CF clear on success
  4372.         ES:BX -> ROM table (see below)
  4373.     AH = status
  4374.         00h successful
  4375.         86h unsupported function
  4376. Notes:    the 1/10/86 XT BIOS returns an incorrect value for the feature byte
  4377.     the configuration table is at F000h:E6F5h in 100% compatible BIOSes
  4378.     Dell machines contain the signature "DELL" or "Dell" at absolute FE076h
  4379.       and a model byte at absolute address FE845h
  4380.     Tandy 1000 machines contain 21h in the byte at F000h:C000h
  4381.     some AST machines contain the string "COPYRIGHT AST RESEARCH" one byte
  4382.       past the end of the configuration table
  4383.     the Phoenix 386 BIOS contains a second version and date string
  4384.       (presumably the last modification for that OEM version) beginning at
  4385.       F000h:FFD8h, with each byte doubled (so that both ROM chips contain
  4386.       the complete information)
  4387. SeeAlso: AH=C7h,AH=C9h,AH=D1h
  4388.  
  4389. Format of ROM configuration table:
  4390. Offset    Size    Description
  4391.  00h    WORD    number of bytes following
  4392.  02h    BYTE    model (see below)
  4393.  03h    BYTE    submodel (see below)
  4394.  04h    BYTE    BIOS revision: 0 for first release, 1 for 2nd, etc.
  4395.  05h    BYTE    feature byte 1:
  4396.         bit 7: DMA channel 3 used by hard disk BIOS
  4397.         bit 6: 2nd 8259 installed
  4398.         bit 5: Real-Time Clock installed
  4399.         bit 4: INT 15/AH=4Fh called upon INT 9h
  4400.         bit 3: wait for external event (INT 15/AH=41h) supported
  4401.         bit 2: extended BIOS area allocated (usually at top of RAM)
  4402.         bit 1: bus is Micro Channel instead of ISA
  4403.         bit 0: system has dual bus (Micro Channel + ISA)
  4404.  06h    BYTE    feature byte 2:
  4405.         bit 7: reserved
  4406.         bit 6: INT 16/AH=09h (keyboard functionality) supported
  4407.         bit 5: INT 15/AH=C6h (get POS data) supported
  4408.         bit 4: INT 15/AH=C7h (return memory map info) supported
  4409.         bit 3: INT 15/AH=C8h (en/disable CPU functions) supported
  4410.         bit 2: non-8042 keyboard controller
  4411.         bit 1: data streaming supported
  4412.         bit 0: reserved
  4413.  07h    BYTE    feature byte 3:
  4414.          bits 7-5 reserved
  4415.         bit 4: ??? (set on 1992 PS/1's, N51SX, CL57SX, 35SX?, 40SX?)
  4416.         bit 3: SCSI subsystem supported on system board
  4417.         bit 2: information panel installed
  4418.         bit 1: IML (Initial Machine Load) system
  4419.         bit 0: SCSI supported in IML
  4420.  08h    BYTE    feature byte 4:
  4421.         bit 7: ??? (set on N51SX, CL57SX)
  4422.         bits 6-4: reserved
  4423.         bit 3: ??? (set on some 1992 PS/1's, 35SX, 40SX)
  4424.         bits 2-1: reserved
  4425.         bit 0: ??? (set on N51SX, CL57SX, 57SX)
  4426.  09h    BYTE    feature byte 5:
  4427.         reserved (0) (IBM)
  4428.         ??? (08h) (Phoenix 386 v1.10)
  4429. ---AWARD BIOS---
  4430.  0Ah  N BYTEs    AWARD copyright notice
  4431. ---Phoenix BIOS---
  4432.  0Ah    BYTE    ??? (00h)
  4433.  0Bh    BYTE    major version
  4434.  0Ch    BYTE    minor version (BCD)
  4435.  0Dh  4 BYTEs    ASCIZ string "PTL" (Phoenix Technologies Ltd)
  4436.  
  4437. Values for model/submodel/revision:
  4438. Model  Submdl  Rev    BIOS date    System
  4439.  FFh    *    *    04/24/81    PC (original)
  4440.  FFh    *    *    10/19/81    PC (some bugfixes)
  4441.  FFh    *    *    10/27/82    PC (HD, 640K, EGA support)
  4442.  FFh    46h    ***      ???        Olivetti M15
  4443.  FEh    *    *    08/16/82    PC XT
  4444.  FEh    *    *    11/08/82    PC XT and Portable
  4445.  FEh    43h    ***      ???        Olivetti M240
  4446.  FEh    A6h    ???      ???        ??? (checked for by 386MAX v6.01)
  4447.  FDh    *    *    06/01/83    PCjr
  4448.  FCh    *    *    01/10/84    AT models 068,099 6 MHz 20MB
  4449.  FCh    00h    01h    06/10/85    AT model  239      6 MHz 30MB
  4450.  FCh    00h    <> 01h      ???        7531/2 Industrial AT
  4451.  FCh    01h    00h    11/15/85    AT models 319,339 8 MHz, Enh Keyb, 3.5"
  4452.  FCh    01h    00h    09/17/87    Tandy 3000
  4453.  FCh    01h    00h    01/15&88    Toshiba T5200/100
  4454.  FCh    01h    00h    12/26*89    Toshiba T1200/XE
  4455.             (Those date characters are not typos)
  4456.  FCh    01h    30h      ???        Tandy 3000NL
  4457.  FCh    01h    ???      ???        Compaq 286/386
  4458.  FCh    02h    00h    04/21/86    PC XT-286
  4459.  FCh    04h    00h    02/13/87     ** PS/2 Model 50 (10 MHz/1 ws 286)
  4460.  FCh    04h    03h    04/18/88    PS/2 Model 50Z (10 MHz/0 ws 286)
  4461.  FCh    05h    00h    02/13/87     ** PS/2 Model 60 (10 MHz 286)
  4462.  FCh    06h    ???      ???        7552 "Gearbox"
  4463.  FCh    08h    ***      ???        Epson, unknown model
  4464.  FCh    09h    00h      ???        PS/2 Model 25 (10 MHz 286)
  4465.  FCh    09h    02h    06/28/89    PS/2 Model 30-286
  4466.  FCh    0Bh    00h    02/16/90    PS/1 Model 2011 (10 MHz 286)
  4467.  FCh    30h    ***      ???        Epson, unknown model
  4468.  FCh    31h    ***      ???        Epson, unknown model
  4469.  FCh    33h    ***      ???        Epson, unknown model
  4470.  FCh    42h    ***      ???        Olivetti M280
  4471.  FCh    45h    ***      ???        Olivetti M380 (XP 1, XP3, XP 5)
  4472.  FCh    48h    ***      ???        Olivetti M290
  4473.  FCh    4Fh    ***      ???        Olivetti M250
  4474.  FCh    50h    ***      ???        Olivetti M380 (XP 7)
  4475.  FCh    51h    ***      ???        Olivetti PCS286
  4476.  FCh    52h    ***      ???        Olivetti M300
  4477.  FCh    81h    00h    01/15/88    Phoenix 386 BIOS v1.10 10a
  4478.  FBh    00h    01h    01/10/86    PC XT, Enh Keyb, 3.5" support
  4479.  FBh    00h    02h    05/09/86    PC XT
  4480.  FBh    4Ch    ***      ???        Olivetti M200
  4481.  FAh    00h    00h    09/02/86    PS/2 Model 30 (8 MHz 8086)
  4482.  FAh    00h    01h    12/12/86    PS/2 Model 30
  4483.  FAh    01h    00h      ???        PS/2 Model 25/25L (8 MHz 8086)
  4484.  FAh    4Eh    ***      ???        Olivetti M111
  4485.  F9h    00h    00h    09/13/85    PC Convertible
  4486.  F8h    00h    00h    03/30/87     ** PS/2 Model 80 (16MHz 386)
  4487.  F8h    01h    00h    10/07/87    PS/2 Model 80 (20MHz 386)
  4488.  F8h    04h    02h    04/11/88    PS/2 Model 70 20MHz, type 2 system brd
  4489.  F8h    04h    03h    03/17/89    PS/2 Model 70 20MHz, type 2 system brd
  4490.  F8h    09h    00h      ???        PS/2 Model 70 16MHz, type 1 system brd
  4491.  F8h    09h    02h    04/11/88    PS/2 Model 70 some models
  4492.  F8h    09h    03h    03/17/89    PS/2 Model 70 some models
  4493.  F8h    0Bh    00h    01/18/89    PS/2 Model P70 (8573-121) typ 2 sys brd
  4494.  F8h    0Bh    02h    12/16/89    PS/2 Model P70 ??
  4495.  F8h    0Ch    00h    11/02/88    PS/2 Model 55SX (16 MHz 386SX)
  4496.  F8h    0Dh    00h      ???        PS/2 Model 70 25MHz, type 3 system brd
  4497.  F8h    11h    00h    10/01/90    PS/2 Model 90 (25 MHz 486)
  4498.  F8h    13h    00h    10/01/90    PS/2 Model 90 (33 MHz 486)
  4499.  F8h    14h    00h    10/01/90    PS/2 Model 90-AK9 (25 MHz 486)
  4500.  F8h    16h    00h    10/01/90    PS/2 Model 90-AKD (33 MHz 486)
  4501.  F8h    19h    05h      ???        PS/2 Model 35/35LS or 40 (20 MHz 386SX)
  4502.  F8h    1Bh    00h    10/02/89    PS/2 Model 70-486 (25 MHz 486)
  4503.  F8h    1Ch    00h    02/08/90    PS/2 Model 65-121 (16 MHz 386SX)
  4504.  F8h    1Eh    00h    02/08/90    PS/2 Model 55LS (16 MHz 386SX)
  4505.  F8h    23h    01h      ???        PS/2 Model L40 (20 MHz 386SX)
  4506.  F8h    25h    06h      ???        PS/2 Model M57 (20 MHz 386SLC)
  4507.  F8h    26h    01h      ???        PS/2 Model 57 (20 MHz 386SX)
  4508.  F8h    2Ah    00h      ???        PS/2 Model 95 (50 MHz 486)
  4509.  F8h    2Bh    00h      ???        PS/2 Model 90 (50 MHz 486)
  4510.  F8h    2Ch    01h      ???        PS/2 Model 95 (20 MHz 486SX)
  4511.  F8h    2Dh    00h      ???        PS/2 Model 90 (20 MHz 486SX)
  4512.  F8h    2Eh    01h      ???        PS/2 Model 95 (20 MHz 486SX + 487SX)
  4513.  F8h    2Fh    00h      ???        PS/2 Model 90 (20 MHz 486SX + 487SX)
  4514.  F8h    30h    00h      ???        PS/1 Model 2121 (16 MHz 386SX)
  4515.  F8h    50h    00h      ???        PS/2 Model P70 (8573) (16 MHz 386)
  4516.  F8h    50h    01h    12/16/89    PS/2 Model P70 (8570-031)
  4517.  F8h    52h    00h      ???        PS/2 Model P75 (33 MHz 486)
  4518.  F8h    61h    ***      ???        Olivetti P500
  4519.  F8h    62h    ***      ???        Olivetti P800
  4520.  F8h    80h    00h      ???        PS/2 Model 80 (25 MHz 386)
  4521.  F8h    80h    01h    11/21/89    PS/2 Model 80-A21
  4522.  F8h    ???    ???      ???        PS/2 Model 90 (25 MHz 486SX)
  4523.  F8h    ???    ???      ???        PS/2 Model 95 (25 MHz 486SX)
  4524.  F8h    ???    ???      ???        PS/2 Model 90 (25 MHz 486SX + 487SX)
  4525.  F8h    ???    ???      ???        PS/2 Model 95 (25 MHz 486SX + 487SX)
  4526.  E1h    ???    ???      ???        ??? (checked for by DOS4GW.EXE)
  4527.  9Ah    *    *      ???        Compaq XT/Compaq Plus
  4528.  30h    ???    ???      ???        Sperry PC
  4529.  2Dh    *    *      ???        Compaq PC/Compaq Deskpro
  4530.  ???    56h    ???      ???        Olivetti, unknown model
  4531.  ???    74h    ???      ???        Olivetti, unknown model
  4532.     * This BIOS call is not implemented in these early versions.
  4533.       Read Model byte at F000h:FFFEh and BIOS date at F000h:FFF5h.
  4534.    ** These BIOS versions require the DASDDRVR.SYS patches.
  4535.   *** These Olivetti and Epson machines store the submodel in the byte at
  4536.     F000h:FFFDh.
  4537.  
  4538. Values for Dell model byte:
  4539.  02h    Dell 200
  4540.  03h    Dell 300
  4541.  05h    Dell 220
  4542.  06h    Dell 310
  4543.  07h    Dell 325
  4544.  09h    Dell 310A
  4545.  0Ah    Dell 316
  4546.  0Bh    Dell 220E
  4547.  0Ch    Dell 210
  4548.  0Dh    Dell 316SX
  4549.  0Eh    Dell 316LT
  4550.  0Fh    Dell 320LX
  4551.  11h    Dell 425E
  4552. --------B-15C1-------------------------------
  4553. INT 15 - SYSTEM - RETURN EXTENDED-BIOS DATA-AREA SEGMENT ADDRESS (PS)
  4554.     AH = C1h
  4555. Return: CF set on error
  4556.     CF clear if successful
  4557.         ES = segment of data area
  4558. SeeAlso: AH=04h"ABIOS"
  4559. --------M-15C200-----------------------------
  4560. INT 15 - SYSTEM - POINTING DEVICE BIOS INTERFACE (PS) - ENABLE/DISABLE
  4561.     AX = C200h
  4562.     BH = new state
  4563.         00h disabled
  4564.         01h enabled
  4565. Return: CF set on error
  4566.     AH = status
  4567.         00h successful
  4568.         01h invalid function
  4569.         02h invalid input
  4570.         03h interface error
  4571.         04h need to resend
  4572.         05h no device handler installed
  4573. --------M-15C201-----------------------------
  4574. INT 15 - SYSTEM - POINTING DEVICE BIOS INTERFACE (PS) - RESET
  4575.     AX = C201h
  4576. Return: CF set on error
  4577.         AH = status (see AX=C200h)
  4578.     CF clear if successful
  4579.         BH = device ID
  4580.         BL = value returned by attached device after reset
  4581.             AAh if device is a mouse
  4582. Note:    after successful completion of this call, the pointing device is set
  4583.       as follows: disabled, sample rate 100 Hz, resolution 4 counts/mm,
  4584.       scaling 1:1, unchanged data package size
  4585. SeeAlso: INT 33/AX=0000h
  4586. --------M-15C202-----------------------------
  4587. INT 15 - SYSTEM - POINTING DEVICE BIOS INTERFACE (PS) - SET SAMPLING RATE
  4588.     AX = C202h
  4589.     BH = sampling rate
  4590.         00h 10/second
  4591.         01h 20/second
  4592.         02h 40/second
  4593.         03h 60/second
  4594.         04h 80/second
  4595.         05h 100/second
  4596.         06h 200/second
  4597. Return: CF set on error
  4598.         AH = status (see AX=C200h)
  4599. SeeAlso: INT 33/AX=001Ch
  4600. --------M-15C203-----------------------------
  4601. INT 15 - SYSTEM - POINTING DEVICE BIOS INTERFACE (PS) - SET RESOLUTION
  4602.     AX = C203h
  4603.     BH = resolution
  4604.         00h one count per mm
  4605.         01h two counts per mm
  4606.         02h four counts per mm
  4607.         03h eight counts per mm
  4608. Return: CF set on error
  4609.         AH = status (see AX=C200h)
  4610. --------M-15C204-----------------------------
  4611. INT 15 - SYSTEM - POINTING DEVICE BIOS INTERFACE (PS) - GET TYPE
  4612.     AX = C204h
  4613. Return: CF set on error
  4614.         AH = status (see AX=C200h)
  4615.     CF clear if successful
  4616.         BH = device ID
  4617. --------M-15C205-----------------------------
  4618. INT 15 - SYSTEM - POINTING DEVICE BIOS INTERFACE (PS) - INITIALIZE
  4619.     AX = C205h
  4620.     BH = data package size (1 - 8 bytes)
  4621. Return: CF set on error
  4622.         AH = status (see AX=C200h)
  4623. Note:    the pointing device is set as follows: disabled, 100 Hz sample rate,
  4624.       resolution 4 counts/mm, scaling 1:1
  4625. SeeAlso: AX=C201h
  4626. --------M-15C206-----------------------------
  4627. INT 15 - SYSTEM - POINTING DEVICE BIOS INTERFACE (PS) - EXTENDED COMMANDS
  4628.     AX = C206h
  4629.     BH = subfunction
  4630.         00h return device status
  4631.         Return: BL = pointing device status (see below)
  4632.             CL = resolution (see AX=C203h)
  4633.             DL = sample rate, reports per second
  4634.         01h set scaling at 1:1
  4635.         02h set scaling at 2:1
  4636. Return: CF set on error
  4637.         AH = status (see AX=C200h)
  4638.  
  4639. Bitfields for pointing device status:
  4640.  bit 0    right button pressed
  4641.  bit 1    reserved
  4642.  bit 2    left button pressed
  4643.  bit 3    reserved
  4644.  bit 4    0 if 1:1 scaling, 1 if 2:1 scaling
  4645.  bit 5    device enabled
  4646.  bit 6    0 if stream mode, 1 if remote mode
  4647.  bit 7    reserved
  4648. --------M-15C207-----------------------------
  4649. INT 15 - SYSTEM - POINTING DEVICE BIOS INTERFACE (PS) - SET DEVICE HANDLER ADDR
  4650.     AX = C207h
  4651.     ES:BX -> FAR user device handler
  4652. Return: CF set on error
  4653.         AH = status (see AX=C200h)
  4654. Note:    when the subroutine is called, it is passed the following values on
  4655.       the stack; the handler should return with a FAR return without
  4656.       popping the stack:
  4657.           WORD 1: status (see below)
  4658.         WORD 2: X data (high byte = 00h)
  4659.         WORD 3: Y data (high byte = 00h)
  4660.         WORD 4: 0000h
  4661. SeeAlso: INT 33/AX=000Ch
  4662.  
  4663. Bitfields for status:
  4664.  bits 15-8 reserved (0)
  4665.  bit 7    Y data overflowed
  4666.  bit 6    X data overflowed
  4667.  bit 5    Y data is negative
  4668.  bit 4    X data is negative
  4669.  bit 3    reserved (1)
  4670.  bit 2    reserved (0)
  4671.  bit 1    right button pressed
  4672.  bit 0    left button pressed
  4673. --------B-15C3------------------------------
  4674. INT 15 - SYSTEM - ENABLE/DISABLE WATCHDOG TIMEOUT (PS50+)
  4675.     AH = C3h
  4676.     AL = function
  4677.         00h disable PS/2 watchdog timer
  4678.         01h enable PS/2 watchdog timer
  4679.         BX = timer counter (0001h-00FFh)
  4680.         02h disable Gearbox system
  4681.         03h enable Gearbox system
  4682. Return: CF set on error
  4683.     CF clear if successful
  4684. Note:    the watchdog timer generates an NMI
  4685. --------B-15C4-------------------------------
  4686. INT 15 - SYSTEM - PROGRAMMABLE OPTION SELECT (PS50+)
  4687.     AH = C4h
  4688.     AL = 00h return base POS register address
  4689.          01h enable selected slot for setup
  4690.          BL = slot number (1 to 8)
  4691.          02h disable setup for all slots
  4692. Return: CF set on error
  4693.     DX = base POS register address (if function 00h)
  4694. SeeAlso: AH=C6h
  4695. --------B-15C5-------------------------------
  4696. INT 15 UC - OS HOOK - ROM BIOS TRACING CALLOUT (PS30/286,PS50Z,PS95)
  4697.     AH = C5h
  4698.     AL = interrupt being invoked
  4699.         01h INT 19
  4700.         02h INT 14
  4701.         03h INT 16
  4702.         04h INT 40 (floppy INT 13)
  4703.         05h INT 17
  4704.         06h INT 10
  4705.         07h INT 12
  4706.         08h INT 11
  4707.         09h INT 1A
  4708. Return: all registers except AX must be preserved
  4709. Notes:    called as the very first action of the indicated ROM BIOS interrupt
  4710.       handlers on the PS/2 Models 30/286, 50Z, and 95
  4711.     default handler does nothing and returns CF clear for the above
  4712.       subfunctions, CF set and AH=86h for all other subfunctions
  4713.     value of AX passed to the original interrupt handler is pushed on
  4714.       stack immediately prior to call
  4715. --------B-15C6-------------------------------
  4716. INT 15 U - later PS/2 models - GET POS DATA
  4717.     AH = C6h
  4718.     ???
  4719. Return: ???
  4720. Notes:    this function is referenced by name and number in some IBM BIOS manuals
  4721.     IBM reports that "there are a number of problems with this call" and
  4722.       does not recommend its use.
  4723. SeeAlso: AH=C4h
  4724. --------B-15C7-------------------------------
  4725. INT 15 - SYSTEM - later PS/2s - RETURN MEMORY-MAP INFORMATION
  4726.     AH = C7h
  4727.     DS:SI -> user supplied memory map table (see below)
  4728. Note:    call AH=C0h and examine bit 4 of feature byte 2 to check if this
  4729.       function is supported
  4730. Return: CF set on error, clear on success
  4731. SeeAlso: AH=C0h,AH=C9h,AH=D1h
  4732.  
  4733. Format of memory-map table structure:
  4734. Offset    Size    Description
  4735.  00h    WORD    length of table (excluding this word)
  4736.  02h    DWORD    local memory between 1M and 16M, in 1K blocks
  4737.  06h    DWORD    local memory between 16M and 4G, in 1K blocks
  4738.  0Ah    DWORD    system memory between 1M and 16M, in 1K blocks
  4739.  0Eh    DWORD    system memory between 16M and 4G, in 1K blocks
  4740.  12h    DWORD    cacheable memory between 1M and 16M, in 1K blocks
  4741.  16h    DWORD    cacheable memory between 16M and 4G, in 1K blocks
  4742.  1Ah    DWORD    1K blocks before start of non-system memory between 1M and 16M
  4743.  1Eh    DWORD    1K blocks before start of non-system memory between 16M and 4G
  4744.  22h  2 DWORDs    reserved
  4745. --------B-15C8-------------------------------
  4746. INT 15 - SYSTEM - ENABLE/DISABLE PROCESSOR FUNCTIONS
  4747.     AH = C8h
  4748.     AL = function
  4749.         00h disable cache or (90 and 95) disable cache L1
  4750.         01h enable cache or (90 and 95) enable cache L1
  4751.         ---models 90 and 95 only---
  4752.         02h disable cache L2
  4753.         03h enable cache L2
  4754.         04h disable both caches
  4755.         05h enable both caches
  4756.         06h return status of both caches
  4757.         07h-FFh Reserved
  4758. Return: CF set on error
  4759.     CF clear if successful
  4760.         AH = status
  4761.         00h operation successful
  4762.         01h function choice (in AL) is invalid
  4763.         02h NVRAM data is invalid
  4764.         03h cache test error
  4765.         04h (90 and 95 only) cannot perform operation requested due
  4766.             to state of other cache (see note below)
  4767.         05h no L2 cache is present
  4768.     For subfunction 06h only:
  4769.         BH = status of cache L2
  4770.         00h enabled
  4771.         01h disabled or not installed
  4772.         BL = status of cache L1 (same codes as BH)
  4773. Notes:   supported by at least PS/2 70, 70/486, 80-A21, 90, 95
  4774.     call AH=C0h and examine bit 3 of feature byte 2 to check if this
  4775.       function is supported.
  4776.     on a 486 system, any external caches must be disabled when the
  4777.       on-chip cache (L1) is disabled.
  4778. SeeAlso: AH=C0h
  4779. --------B-15C9-------------------------------
  4780. INT 15 - newer PS/2; various BIOSes - GET CPU TYPE AND MASK REVISION
  4781.     AH = C9h
  4782.     AL = 10h (may be required on some non-PS BIOSes)
  4783. Return: CF clear if successful
  4784.         AH = 00h
  4785.         CH = CPU type
  4786.             03h 80386DX or clone
  4787.         04h 80486
  4788.         23h 80386SX or clone
  4789.         CL = mask revision (stepping level)
  4790.             80386:
  4791.             03h B1
  4792.             05h D0
  4793.             08h D1/D2/E1
  4794.         80386SX
  4795.             08h D1
  4796.     CF set on error
  4797.         AH = status (80h,86h = function not supported)
  4798. Notes:    the BIOS must save DX at startup in order to be able to support this
  4799.       call; PS/2 Models 56, 57, 90, and 95 are known to support it
  4800.     the PS/2 BIOS merely reads CMOS locations 190h (type) and 191h (rev)
  4801. --------B-15CA-------------------------------
  4802. INT 15 U - PS/2 Model 95 - RESERVED
  4803.     AH = CAh
  4804.     ???
  4805. Return: ???
  4806. --------B-15CB-------------------------------
  4807. INT 15 U - PS/2 Model 95 - RESERVED
  4808.     AH = CBh
  4809.     ???
  4810. Return: ???
  4811. --------B-15CC-------------------------------
  4812. INT 15 U - PS/2 Model 95 - RESERVED
  4813.     AH = CCh
  4814.     ???
  4815. Return: ???
  4816. --------B-15CD-------------------------------
  4817. INT 15 U - PS/2 Model 95 - RESERVED
  4818.     AH = CDh
  4819.     ???
  4820. Return: ???
  4821. --------B-15CE--BL00-------------------------
  4822. INT 15 - later PS/2s - ALLOCATE DMA ARBITRATION LEVEL
  4823.     AH = CEh
  4824.     BL = 00h-0Eh arbitration level to be allocated
  4825.          0Fh-FFh reserved
  4826.     AL = option byte
  4827.         bit 7-1: reserved (0)
  4828.         bit 0: 0 = need DMA channel for arbitration level requested
  4829.            1 = no channel required for arbitration level
  4830. Return: CF set on error
  4831.         AH = status (80h,86h = function not supported)
  4832.     CF clear on success
  4833.         AL = channel number
  4834.         00h-07h channel number allocated for the arbiration level
  4835.         08h-FEh reserved
  4836.         FFh    no channel requested for arbitration level
  4837.         AH = status
  4838.         00h success
  4839.         01h arbitration level not available
  4840.         02h channel not available
  4841.         03h invalid arbitration level passed
  4842. Notes:     arbitration level 00h has the highest priority, 0Eh the lowest
  4843.      to perform a DMA transfer operation, be sure to call this function
  4844.        first, and call AH=CFh afterward.  Failure to use this function
  4845.        can cause unpredictable results.
  4846. SeeAlso: AH=CFh
  4847. --------B-15CF-------------------------------
  4848. INT 15 - later PS/2s - DEALLOCATE DMA ARBITRATION LEVEL
  4849.     AH = CFh
  4850.     BL = arbitration level to be deallocated (see AH=CEh)
  4851. Return: CF set on error
  4852.         AH = status (80h,86h = function not supported)
  4853.     CF clear on success
  4854.         AH = status
  4855.         00h success
  4856.         04h arbitration level not allocated
  4857. SeeAlso: AH=CEh
  4858. --------B-15D0-------------------------------
  4859. INT 15 - later PS/2s - RESERVED
  4860.     AH = D0h
  4861.     ???
  4862. Return: ???
  4863. --------B-15D100DX0000-----------------------
  4864. INT 15 - later PS/2s - GET NUMBER OF DEVICE DESCRIPTOR TABLE (DDT) ENTRIES
  4865.     AX = D100h
  4866.     DX = 0000h (reserved, must set to 0)
  4867. Return: BL = size of one DDT entry, in bytes
  4868.     CX = number of DDT entries
  4869.     AH = return code
  4870.         00h success
  4871.         01h requested DDT entry not found
  4872.         02h DDT data not valid
  4873.         86h function not supported
  4874.     CF set on error
  4875.     CF clear on success
  4876. SeeAlso: AH=C0h,AH=C7h,AH=C9h,AX=D101h,AX=D102h,AX=D103h,AX=D104h
  4877. --------B-15D101-----------------------------
  4878. INT 15 - later PS/2s - RETURN DEVICE DESCRIPTOR TABLE (DDT) ENTRY BY NUMBER
  4879.     AX = D101h
  4880.     BX = number of requested entry (starting with 1)
  4881.     DX = 0000h (reserved, must be set to 0)
  4882.     ES:DI -> buffer to contain DDT entry (see below)
  4883. Return: ES:DI -> buffer containing DDT entry
  4884.     AH = return code
  4885.         00h = Success
  4886.         01h = Requested DDT entry not found
  4887.         02h = DDT data not valid
  4888.         86h = function not supported
  4889.     CF set on error
  4890.     CF clear on success
  4891. SeeAlso: AH=C0h,AH=C7h,AH=C9h,AX=D100h,AX=D102h,AX=D104h
  4892.  
  4893. Format of DDT:
  4894. Offset    Size    Description
  4895.  00h    BYTE    bits 7-4: reserved (set to 0)
  4896.         bits 3-0: slot of device (0 = system board)
  4897.  01h    BYTE    bits 7-4: second interrupt for this device (0 = none)
  4898.         bits 3-0: first interrupt for this device (0 = none)
  4899.  02h    BYTE    bits 7-4: second arbitration level for this device
  4900.         bits 3-0: first arbitration level for this device
  4901.  03h    WORD    DDT indicators (see below)
  4902.  05h    BYTE    reserved (0)
  4903.  06h    WORD    device ID (0 = none)
  4904.  08h    WORD    starting address of first  I/O block (0 = none)
  4905.  0Ah    WORD    starting address of second I/O block (0 = none)
  4906.  OCh    WORD    starting address of third  I/O block (0 = none)
  4907.  OEh    DWORD    start of first non-system memory block (0 = none)
  4908.  12h    WORD    size of first non-system memory block (in kilobytes)
  4909.  14h    DWORD    start of second non-system memory block (0 = none)
  4910.  18h    WORD    size of second non-system memory block (in kilobytes)
  4911.  1Ah    BYTE    implementation identifier of the device
  4912.  1Bh    BYTE    implementation revision level of the device
  4913. Note:    I/O block addresses and non-system memory addresses are listed in
  4914.       ascending order in each DDT entry.
  4915.  
  4916. Bitfields for DDT indicators:
  4917.  bit 15    reserved (0)
  4918.  bit 14    second arbitration level exists
  4919.  bit 13    first arbitration level exists
  4920.  bit 12    serial interface is RS-422
  4921.  bit 11    not address limited
  4922.  bit 10    DMA channel used
  4923.  bit 9    second arbitration level can be shared
  4924.  bit 8    first arbitration level can be shared
  4925.  bits 7-0 reserved (0)
  4926. --------B-15D102-----------------------------
  4927. INT 15 - later PS/2s - RETURN DEVICE DESCRIPTOR TABLE (DDT) ENTRY BY I/O ADDRSS
  4928.     AX = D102h
  4929.     BX = entry number at which to start searching
  4930.     CX = requested I/O port address
  4931.     DX = 0000h (reserved, must be set to 0)
  4932.     ES:DI -> buffer to contain DDT entry (see AX=D101h)
  4933. Return: BX = DDT entry number where I/O port was found, or total entries
  4934.          plus 1 if port was not found.
  4935.     ES:DI -> buffer containing DDT entry (see AX=D101h for format)
  4936.     AH = return code
  4937.         00h success
  4938.         01h requested DDT entry not found
  4939.         02h DDT data not valid
  4940.         86h function not supported
  4941.     CF set on error
  4942.     CF clear on success
  4943. Desc:    the DDT is searched from the specified entry for the I/O port in CX,
  4944.       and the first entry in which it is found is returned
  4945. SeeAlso: AH=C0h,AH=C7h,AH=C9h,AX=D100h,AX=D101h,AX=D103h,AX=D104h
  4946. --------B-15D103DX0000-----------------------
  4947. INT 15 - later PS/2s - RETURN ENTIRE DDT
  4948.     AX = D103h
  4949.     DX = 0000h (reserved, must be set to 0)
  4950.     ES:DI -> buffer to contain DDT entry
  4951. Return: ES:DI -> buffer containing DDT entry (see AX=D101h for format)
  4952.     AH = return code
  4953.         00h success
  4954.         01h requested DDT entry not found
  4955.         02h DDT data not valid
  4956.         86h function not supported
  4957.     CF set on error
  4958.     CF clear on success
  4959. SeeAlso: AH=C0h,AH=C7h,AH=C9h,AX=D100h,AX=D104h
  4960. --------B-15D104-----------------------------
  4961. INT 15 - later PS/2s - RETURN DEVICE DESCRIPTOR TABLE (DDT) ENTRY BY DEVICE ID
  4962.     AX = D104h
  4963.     BX = entry number at which to start searching
  4964.     CX = requested device ID
  4965.     DX = 0000h (reserved, must be set to 0)
  4966.     ES:DI -> buffer to contain DDT entry
  4967. Return: BX = DDT entry number where device ID was found, or total entries
  4968.          plus 1 if port was not found.
  4969.     ES:DI -> buffer containing DDT entry (see AX=D101h for format)
  4970.     AH = return code
  4971.         00h success
  4972.         01h requested DDT entry not found
  4973.         02h DDT data not valid
  4974.         86h function not supported
  4975.     CF set on error
  4976.     CF clear on success
  4977. Desc:    the DDT is searched from the specified entry for the device ID in CX,
  4978.       and the first entry in which it is found is returned.
  4979. SeeAlso: AH=C0h,AH=C7h,AH=C9h,AX=D100h,AX=D101h,AX=D103h
  4980. --------B-15D2-------------------------------
  4981. INT 15 - later PS/2s - RESERVED
  4982.     AH = D2h
  4983.     ???
  4984. Return: ???
  4985. --------B-15D3-------------------------------
  4986. INT 15 - later PS/2s - RESERVED
  4987.     AH = D3h
  4988.     ???
  4989. Return: ???
  4990. --------B-15D4-------------------------------
  4991. INT 15 - later PS/2s - GET PHYSICAL FIXED DISK DRIVE NUMBER (SELECTABLE BOOT)
  4992.     AH = D4h
  4993.     DL = logical fixed disk drive number
  4994. Return: AL = physical fixed disk drive number
  4995.     AH = return code
  4996.         00h success
  4997.         01h specified logical drive number is invalid
  4998.         86h function not supported
  4999.         80h function not supported (on PCjr and PC)
  5000.     CF set on error
  5001.     CF clear on success
  5002. --------B-15D5-------------------------------
  5003. INT 15 - later PS/2s - RESERVED
  5004.     AH = D5h
  5005.     ???
  5006. Return: ???
  5007. --------B-15D600BL00-------------------------
  5008. INT 15 - later PS/2s - READ BOOT DEVICE ID
  5009.     AX = D600h
  5010.     BL = 00h
  5011.     DX = device ID
  5012. Return: CF clear if successful
  5013.         AH = 00h
  5014.     CF set on error
  5015.         AH = status (86h for function not supported)
  5016. SeeAlso: AX=D600h/BL=01h,AX=D601h/BL=00h,AX=D602h
  5017. --------B-15D600BL01-------------------------
  5018. INT 15 - later PS/2s - WRITE BOOT DEVICE ID
  5019.     AX = D600h
  5020.     BL = 01h
  5021.     DX = device ID
  5022. Return: CF clear on success
  5023.         AH = 00h
  5024.     CF set on error
  5025.         AH = status (86h for function not supported)
  5026. SeeAlso: AX=D600h/BL=00h,AX=D601h/BL=01h
  5027. --------B-15D601BL00-------------------------
  5028. INT 15 - later PS/2s - READ BOOT DEVICE KEY
  5029.     AX = D601h
  5030.     BL = 00h
  5031.     DX = device ID
  5032. Return: CF clear on success
  5033.         AH = 00h
  5034.     CF set on error
  5035.         AH = status (86h for function not supported)
  5036. SeeAlso: AX=D600h/BL=00h,AX=D601h/BL=01h,AX=D602h
  5037. --------B-15D601BL01-------------------------
  5038. INT 15 - later PS/2s - WRITE BOOT DEVICE KEY
  5039.     AX = D601h
  5040.     BL = 01h
  5041.     DX = device ID
  5042. Return: CF clear on success
  5043.         AH = 00h
  5044.     CF set on error
  5045.         AH = status (86h for function not supported)
  5046. SeeAlso: AX=D600h/BL=01h,AX=D601h/BL=00h
  5047. --------B-15D602-----------------------------
  5048. INT 15 - later PS/2s - QUERY BOOT REFERENCE PARTITION
  5049.     AX = D602h
  5050. Return: CF clear on success
  5051.         AH = 00h
  5052.         AL = status of reference-partition boot request
  5053.         00h boot not requested
  5054.         01h boot requested
  5055.     CF set on error
  5056.         AH = status (86h for function not supported)
  5057. SeeAlso: AX=D601h/BL=00h
  5058. --------B-15D800-----------------------------
  5059. INT 15 - EISA SYSTEM ROM - READ SLOT CONFIGURATION INFORMATION
  5060.     AX = D800h
  5061.     CL = slot number (including embedded and virtual)
  5062. Return: CF clear if successful
  5063.         AH = 00h
  5064.     CF set on error
  5065.         AH = error code
  5066.         80h invalid slot number
  5067.         82h EISA CMOS corrupt
  5068.         83h empty slot
  5069.         86h invalid BIOS-FW function call
  5070.         87h invalid system configuration
  5071.     AL bit flags
  5072.         bit 7: set if duplicate IDs
  5073.         bit 6: set if product ID readable
  5074.         bits 4,5: slot type (00=expansion, 01=embedded, 10=virtual device)
  5075.         bits 0-3: duplicate ID number if bit 7 set
  5076.     BH = major revision level of configuration utility
  5077.     BL = minor revision level of configuration utility
  5078.     CX = checksum of configuration file
  5079.     DH = number of device functions
  5080.     DL = combined function information byte
  5081.     SI:DI = 4-byte compressed ID (DI = bytes 0&1, SI = bytes 2&3)
  5082. Note:    call with AL=80h if using 32-bit CS addressing mode instead of 16-bit
  5083. SeeAlso: AX=D801h,AX=D804h
  5084. --------B-15D801-----------------------------
  5085. INT 15 - EISA SYSTEM ROM - READ FUNCTION CONFIGURATION INFORMATION
  5086.     AX = D801h
  5087.     CH = function number to read
  5088.     CL = slot number (including embedded and virtual)
  5089.     DS:SI -> 320-byte buffer for standard configuration data block
  5090. Return: CF clear if successful
  5091.         AH = 00h
  5092.         DS:SI buffer filled
  5093.     CF set on error
  5094.         AH = error code
  5095.         80h invalid slot number
  5096.         81h invalid function number
  5097.         82h EISA CMOS corrupt
  5098.         83h empty slot
  5099.         86h invalid BIOS-FW function call
  5100.         87h invalid system configuration
  5101.     BX destroyed
  5102. Note:    call with AL=81h if using 32-bit CS addressing mode instead of 16-bit
  5103. --------B-15D802-----------------------------
  5104. INT 15 - EISA SYSTEM ROM - CLEAR NONVOLATILE MEMORY (EISA CMOS)
  5105.     AX = D802h
  5106.     BH = EISA config utility major revision level
  5107.     BL = EISA config utility minor revision level
  5108. Return: CF clear if successful
  5109.         AH = 00h
  5110.     CF set on error
  5111.         AH = error code
  5112.         84h error clearing CMOS
  5113.         86h invalid BIOS-FW function call
  5114.         88h config utility version not supported
  5115. Note:    call with AL=82h if using 32-bit CS addressing mode instead of 16-bit
  5116. SeeAlso: AX=D803h
  5117. --------B-15D803-----------------------------
  5118. INT 15 - EISA SYSTEM ROM - WRITE NONVOLATILE MEMORY
  5119.     AX = D803h
  5120.     CX = length of data structure (0000h = empty slot)
  5121.         includes two bytes for config file checksum
  5122.     DS:SI -> configuration data
  5123. Return: CF clear if successful
  5124.         AH = 00h
  5125.     CF set on error
  5126.         AH = error code
  5127.         84h error clearing CMOS
  5128.         85h EISA CMOS is full
  5129.         86h invalid BIOS-FW function call
  5130. Note:    call with AL=83h if using 32-bit CS addressing mode instead of 16-bit
  5131. SeeAlso: AX=D802h
  5132. --------B-15D804-----------------------------
  5133. INT 15 - EISA SYSTEM ROM - READ PHYSICAL SLOT
  5134.     AX = D804h
  5135.     CL = slot number (including embedded and virtual)
  5136. Return: CF clear if successful
  5137.         AH = 00h
  5138.     CF set on error
  5139.         AH = error code
  5140.         80h invalid slot number
  5141.         83h empty slot
  5142.         86h invalid BIOS-FW function call
  5143.     SI:DI = 4-byte compressed ID (DI = bytes 0&1, SI = bytes 2&3)
  5144. Note:    call with AL=84h if using 32-bit CS addressing mode instead of 16-bit
  5145. SeeAlso: AX=D800h
  5146. --------B-15D8-------------------------------
  5147. INT 15 - EISA SYSTEM ROM - 32-bit CS ADDRESSING MODE CALLS
  5148.     AH = D8h
  5149.     AL = 80h to 84h
  5150.     other registers as appropriate for AL=00h to 04h
  5151. Return: as appropriate for AL=00h to 04h
  5152. Note:    these functions are identical to AX=D800h to D804h, except that they
  5153.       should be called when using 32-bit CS addressing mode (pointers use
  5154.       ESI rather than SI as offset) instead of 16-bit addressing mode
  5155. SeeAlso: AX=D800h,AX=D801h,AX=D802h,AX=D803h,AX=D804h
  5156. --------Q-15DE00-----------------------------
  5157. INT 15 - DESQview - GET PROGRAM NAME
  5158.     AX = DE00h
  5159. Return: AX = offset into DESQVIEW.DVO of program most recently selected from
  5160.         the "Switch Windows" menu (see below)
  5161. Note:    always returns AX=0000h under DESQview/X
  5162. SeeAlso: AX=DE07h
  5163.  
  5164. Format of program entry in DESQVIEW.DVO:
  5165. Offset    Size    Description
  5166.  00h    BYTE    length of name (FFh if end of file)
  5167.  01h  N BYTEs    name
  5168.       2 BYTEs    keys to invoke program (second = 00h if only one key used)
  5169.     BYTE    program type
  5170.         00h normal program
  5171.         04h divider
  5172.         80h Delete a Program
  5173.         81h Change a Program
  5174.     WORD    ??? apparently always 0000h
  5175. --------Q-15DE01-----------------------------
  5176. INT 15 - DESQview - UPDATE "OPEN WINDOW" MENU
  5177.     AX = DE01h
  5178. Return: nothing
  5179. Notes:    reads DESQVIEW.DVO, disables Open menu if file not in current directory
  5180.     NOP for DESQview/X
  5181. --------Q-15DE02-----------------------------
  5182. INT 15 - DESQview 1.x only - SET ??? FLAG FOR CURRENT WINDOW
  5183.     AX = DE02h
  5184. Return: nothing
  5185. Note:    this call is a NOP in DV 2.x
  5186. SeeAlso: AX=DE03h
  5187. --------Q-15DE03-----------------------------
  5188. INT 15 - DESQview 1.x only - GET ??? FOR CURRENT WINDOW
  5189.     AX = DE03h
  5190. Return: AX = ??? for current window
  5191.     BX = ??? for current window
  5192. Note:    this call is a NOP in DV 2.x
  5193. SeeAlso: AX=DE02h
  5194. --------Q-15DE04-----------------------------
  5195. INT 15 - DESQview - GET AVAILABLE COMMON MEMORY
  5196.     AX = DE04h
  5197. Return: BX = bytes of common memory available
  5198.     CX = largest block available
  5199.     DX = total common memory in bytes
  5200. SeeAlso: AX=DE05h,AX=DE06h
  5201. --------Q-15DE05-----------------------------
  5202. INT 15 - DESQview - GET AVAILABLE CONVENTIONAL MEMORY
  5203.     AX = DE05h
  5204. Return: BX = K of memory available
  5205.     CX = largest block available
  5206.     DX = total conventional memory in K
  5207. SeeAlso: AX=DE04h,AX=DE06h
  5208. --------Q-15DE06-----------------------------
  5209. INT 15 - DESQview - GET AVAILABLE EXPANDED MEMORY
  5210.     AX = DE06h
  5211. Return: BX = K of expanded memory available
  5212.     CX = largest block available
  5213.     DX = total expanded memory in K
  5214. SeeAlso: AX=DE04h,AX=DE05h
  5215. --------Q-15DE07-----------------------------
  5216. INT 15 - DESQview - "APPNUM" - GET CURRENT PROGRAM'S NUMBER
  5217.     AX = DE07h
  5218. Return: AX = number of program as it appears on the "Switch Windows" menu
  5219. Note:    this API call may be made from a hardware interrupt handler
  5220. SeeAlso: AX=DE00h
  5221. --------Q-15DE08-----------------------------
  5222. INT 15 - DESQview - GET ???
  5223.     AX = DE08h
  5224. Return: AX = 0000h if ??? is not set to the current task
  5225.          0001h if ??? is set to the current task
  5226. --------Q-15DE09-----------------------------
  5227. INT 15 - DESQview - UNIMPLEMENTED
  5228.     AX = DE09h
  5229. Return: nothing (NOP in DV 1.x and 2.x)
  5230. --------Q-15DE0A-----------------------------
  5231. INT 15 - DESQview v2.00+ - "DBGPOKE" - DISPLAY CHARACTER ON STATUS LINE
  5232.     AX = DE0Ah
  5233.     BL = character
  5234. Return: character displayed, next call will display in next position (which
  5235.     wraps back to the start of the line if off the right edge of screen)
  5236. Notes:    displays character on bottom line of *physical* screen, regardless
  5237.       of current size of window (even entirely hidden)
  5238.     does not know about graphics display modes, just pokes the characters
  5239.       into display memory
  5240.     this API call may be made from a hardware interrupt handler
  5241. SeeAlso: AX=1003h
  5242. --------Q-15DE0B-----------------------------
  5243. INT 15 - DESQview v2.00+ - "APILEVEL" - DEFINE MINIMUM API LEVEL REQUIRED
  5244.     AX = DE0Bh
  5245.     BL = API level minor version number
  5246.     BH = API level major version number
  5247. Return: AX = maximum API level (AH = major, AL = minor)
  5248. Notes:    if the requested API level is greater than the version of DESQview, a
  5249.       "You need a newer version" error window is popped up
  5250.     the API level defaults to 1.00, and is inherited by child tasks
  5251. --------Q-15DE0C-----------------------------
  5252. INT 15 - DESQview v2.00+ - "GETMEM" - ALLOCATE "SYSTEM" MEMORY
  5253.     AX = DE0Ch
  5254.     BX = number of bytes
  5255. Return: ES:DI -> allocated block or 0000h:0000h (DV 2.26+)
  5256. Note:    use SETERROR (AX=DE15h) to avoid a user prompt if there is insufficient
  5257.       system memory
  5258. SeeAlso: AX=1001h,AX=102Eh,AX=DE0Dh,AX=DE15h,AX=DE19h
  5259. --------Q-15DE0D-----------------------------
  5260. INT 15 - DESQview v2.00+ - "PUTMEM" - DEALLOCATE "SYSTEM" MEMORY
  5261.     AX = DE0Dh
  5262.     ES:DI -> previously allocated block
  5263. Return: nothing
  5264. SeeAlso: AX=1002h,AX=DE0Ch
  5265. --------Q-15DE0E-----------------------------
  5266. INT 15 - DESQview v2.00+ - "FINDMAIL" - FIND MAILBOX BY NAME
  5267.     AX = DE0Eh
  5268.     ES:DI -> name to find
  5269.     CX = length of name
  5270. Return: BX = 0000h not found
  5271.          0001h found
  5272.         DS:SI = object handle
  5273. SeeAlso: AH=12h/BH=11h,AH=12h/BX=1200h"GETNAME"
  5274.  
  5275. Special mailbox names:
  5276.  "COM1" ... "COM4"    RBcomm using COM1 ... COM4
  5277.  "DESQview/X Help Engine"
  5278.  "DESQview/X Network Server"  Network Manager
  5279.  "DESQview X Server0"    X-Windows server
  5280.  "DESQview X Server7"    X-Windows printing service
  5281.  "INBOX"        DESQview/X LPD requests
  5282.  "OUTBOX"        DESQview/X LPD responses
  5283.  "WAITBOX"        semaphore to synchronize DESQview/X LPD communications
  5284.  "_DVNM_"        DV/X v1.10 network manager
  5285. --------Q-15DE0F-----------------------------
  5286. INT 15 - DESQview v2.00+ - ENABLE DESQview EXTENSIONS
  5287.     AX = DE0Fh
  5288. Return: AX and BX destroyed (seems to be bug, weren't saved&restored)
  5289. Notes:    sends a manager stream with opcodes AEh, BDh, and BFh to task's window
  5290.     enables an additional mouse mode
  5291. --------Q-15DE10-----------------------------
  5292. INT 15 - DESQview v2.00+ - "PUSHKEY" - PUT KEY INTO KEYBOARD INPUT STREAM
  5293.     AX = DE10h
  5294.     BH = scan code
  5295.     BL = character
  5296. Return: nothing
  5297. Notes:    a later read will get the keystroke as if it had been typed by the user
  5298.     multiple pushes are read last-in first-out
  5299.     if a script exists for the pushed key in the current application, the
  5300.       script will be executed
  5301.     early copies of DV 2.00 destroy AX, BX, ES, and DI
  5302. SeeAlso: INT 16/AH=05h
  5303. --------Q-15DE11BL00-------------------------
  5304. INT 15 - DESQview v2.00+ - "JUSTIFY" - EN/DISABLE AUTOM. WINDOW JUSTIFICATION
  5305.     AX = DE11h
  5306.     BL = 00h      viewport will not move automatically
  5307.          nonzero  viewport will move to keep cursor visible (default)
  5308. Return: nothing
  5309. --------Q-15DE12BX0000-----------------------
  5310. INT 15 - DESQview v2.01+ - "CSTYLE" - SET "C"-COMPATIBLE CONTROL CHAR INTERPRET
  5311.     AX = DE12h
  5312.     BX = 0000h    select normal style (linefeed only moves down)
  5313.          nonzero  select C style (linefeed moves to start of next line)
  5314. Return: nothing
  5315. Note:    set on a per-task basis, and inherited from the parent task
  5316. --------Q-15DE13-----------------------------
  5317. INT 15 - DESQview v2.20+ - "GETCRIT" - GET CRITICAL NESTING COUNT
  5318.     AX = DE13h
  5319. Return: BX = number of calls to BEGINC or ENTERC (see INT 15/AX=101Bh,DE1Ch)
  5320.          without matching ENDC (see INT 15/AX=101Ch)
  5321. Note:    this API call may be made from within a hardware interrupt handler
  5322. SeeAlso: AX=101Bh,AX=101Ch,AX=DE1Bh,AX=DE1Ch
  5323. --------Q-15DE14-----------------------------
  5324. INT 15 - DESQview v2.20+ - GET OBJECT TYPE
  5325.     AX = DE14h
  5326.     ES:DI -> object
  5327. Return: BL = 00h not an object
  5328.          08h window or task
  5329.          09h mailbox
  5330.          0Ah keyboard
  5331.          0Bh timer
  5332.          0Ch objectq
  5333.          0Fh pointer
  5334.          10h panel
  5335. SeeAlso: AX=1016h
  5336. --------Q-15DE15-----------------------------
  5337. INT 15 - DESQview v2.20+ - SET ERROR HANDLING
  5338.     AX = DE15h
  5339.     BL = error handling mode
  5340.         00h post system error on all error conditions
  5341.         01h return carry flag set on calls to ADDTO, SUBFROM, and WRITE
  5342.         messages sent to mailboxes which fail due to lack of system
  5343.         or common memory
  5344.         02h (v2.26+) same as 01h, but also return null pointer for GETMEM
  5345.         calls which fail due to lack of system memory
  5346. Return: nothing
  5347. SeeAlso: AX=DE0Ch,AX=DE16h
  5348. --------Q-15DE16-----------------------------
  5349. INT 15 - DESQview v2.20+ - GET ERROR HANDLING
  5350.     AX = DE16h
  5351. Return: BL = current mode
  5352.         00h always post system error
  5353.         01h return carry flag set on failed mailbox writes
  5354.         02h return CF set on failed mailbox writes and NULL on failed
  5355.         GETMEM calls
  5356. SeeAlso: AX=DE15h
  5357. --------Q-15DE17-----------------------------
  5358. INT 15 - DESQview v2.20-2.25 - reserved
  5359.     AX = DE17h
  5360. Return: pops up "Programming error" window
  5361. Note:    AX = 1117h is NOT identical to this call under DESQview 2.20 thru 2.25
  5362. SeeAlso: AX=1117h
  5363. --------Q-15DE17-----------------------------
  5364. INT 15 - DESQview v2.26+ - "ASSERTMAP" - GET/SET MAPPING CONTEXT
  5365.     AX = DE17h
  5366.     BX = function
  5367.         0000h   get current mapping context without setting
  5368.         nonzero set new mapping context to BX
  5369. Return: BX = mapping context in effect before call
  5370. Notes:    mapping contexts determine conventional-memory addressability; setting
  5371.       a mapping context ensures that the associated program and data areas
  5372.       are in memory for access.  Usable by drivers, TSRs and shared
  5373.       programs.
  5374.     caller need not be running under DESQview
  5375.     this API call may be made from a hardware interrupt handler
  5376. SeeAlso: AX=1016h,AX=1117h,AX=DE21h,INT 2F/AX=1685h
  5377. --------Q-15DE18-----------------------------
  5378. INT 15 - DESQview v2.20+ - internal - ???
  5379.     AX = DE18h
  5380.     BP = function number
  5381.         high byte must be 10h
  5382.         low byte is function
  5383.         00h set ???
  5384.             BL = ???  (00h-10h, video mode???)
  5385.             BH = value to store
  5386.         03h set ???
  5387.             BL = ??? (stored in driver)
  5388.         0Ah get ???
  5389.             ES:DI -> 18-byte buffer to hold ???
  5390. Note:    calls video driver (NOP for Hercules driver,probably CGA and MCGA also)
  5391. --------Q-15DE19-----------------------------
  5392. INT 15 - DESQview v2.23+ - "GETCOMMON" - ALLOCATE "COMMON" MEMORY
  5393.     AX = DE19h
  5394.     BX = number of bytes to allocate
  5395. Return: AX = 0000h successful
  5396.         ES:DI -> allocated block
  5397.          nonzero insufficient memory
  5398. Note:    this API call may be made from within a hardware interrupt handler
  5399. SeeAlso: AX=DE0Ch,AX=DE15h,AX=DE1Ah
  5400. --------Q-15DE1A-----------------------------
  5401. INT 15 - DESQview v2.23+ - "PUTCOMMON" - DEALLOCATE "COMMON" MEMORY
  5402.     AX = DE1Ah
  5403.     DS:SI -> previously allocated block
  5404. Note:    this function may be called from within a hardware interrupt handler
  5405. SeeAlso: AX=DE0Dh,AX=DE19h
  5406. --------Q-15DE1B-----------------------------
  5407. INT 15 - DESQview v2.23+ internal - DECREMENT CRITICAL NESTING COUNT
  5408.     AX = DE1Bh
  5409. Return: nothing
  5410. SeeAlso: AX=101Ch,AX=DE13h,AX=DE1Ch
  5411. --------Q-15DE1C-----------------------------
  5412. INT 15 - DESQview v2.23+ - "ENTERC" - INCREMENT CRITICAL NESTING COUNT
  5413.     AX = DE1Ch
  5414. Return: nothing
  5415. Notes:    similar to AX=101Bh, but begins the critical region without ensuring
  5416.       that DOS is free
  5417.     the official documentation states that this call should be paired with
  5418.       "ENDC" (AX=101Ch); no mention is made of AX=DE1Bh
  5419.     this API call may be made from within a hardware interrupt handler
  5420. SeeAlso: AX=101Bh,AX=101Ch,AX=DE13h,AX=DE1Bh
  5421. --------Q-15DE1D-----------------------------
  5422. INT 15 - DESQview v2.23+ - "PUTKEY" - FAKE USER KEYSTROKES
  5423.     AX = DE1Dh
  5424.     DX = segment of handle for task to receive keystroke
  5425.     BL = character
  5426.     BH = scan code
  5427. Return: AX = 0000h if successful
  5428.        nonzero if receiver's keyboard buffer was full
  5429. Notes:    the key is treated as though the user had pressed it, ignoring any
  5430.       script which may be bound to the key, and using the current field
  5431.       table if the keyboard object is in field processing mode
  5432.     multiple PUTKEYs are seen in the order in which they are executed
  5433. SeeAlso: AX=DE10h
  5434. --------Q-15DE1E-----------------------------
  5435. INT 15 - DESQview v2.23+ - "SCRNINFO" - GET TRUE VIDEO PARAMETERS
  5436.     AX = DE1Eh
  5437. Return:    CL = actual number of rows on screen
  5438.     CH = actual number of columns on screen
  5439.     BL = actual video mode (may differ from INT 10/AH=0Fh return) (v2.26+)
  5440. Note:    this API call may be made from a hardware interrupt handler
  5441. SeeAlso: INT 10/AH=0Fh
  5442. --------Q-15DE1F-----------------------------
  5443. INT 15 - DESQview v2.23+ - "DOSUSER" - GET HANDLE OF TASK CURRENTLY USING DOS
  5444.     AX = DE1Fh
  5445. Return: BX = segment of task handle or 0000h if no tasks are using DOS
  5446. Note:    this API call may be made from within a hardware interrupt handler
  5447. SeeAlso: AX=DE13h,INT 21/AH=34h
  5448. --------Q-15DE20-----------------------------
  5449. INT 15 - DESQview v2.26+ - "DISPATCHINT" - INTERRUPT ANOTHER TASK
  5450.     AX = DE20h
  5451.     BX = segment of handle of task to interupt
  5452.     DX:CX -> FAR interrupt routine
  5453.     BP,SI,DI,DS,ES as required by interrupt routine
  5454. Return: nothing
  5455. Notes:    unlike "PGMINT" (AX=1021h), DISPATCHINT may be applied to the task
  5456.       making the DISPATCHINT call
  5457.     multiple "DISPATCHINT" calls are processed in the order in which they
  5458.       were executed
  5459.     the FAR routine is entered with the current ES, DS, SI, DI, and BP
  5460.       values, using the task's internal stack (see AX=101Ah); only SS:SP
  5461.       needs to be preserved
  5462.     this API call may be made from within a hardware interrupt handler
  5463. SeeAlso: AX=1021h,AX=DE2Ah
  5464. --------Q-15DE21-----------------------------
  5465. INT 15 - DESQview v2.26+ - "ASSERTVIR" - CONTROL 386 SCREEN VIRTUALIZATION
  5466.     AX = DE21h
  5467.     BX = new state
  5468.         0000h turn off
  5469.         nonzero turn on
  5470. Return: BX = old state of virtualization
  5471. Notes:    this API call may be made from within a hardware interrupt handler
  5472.     under DV 2.40 and 2.42, this call appears to have no effect and always
  5473.       returns a nonzero value in BX which appears to be the offset within
  5474.       the DV common memory segment of the caller's task object; it may
  5475.       only have an effect within a hardware interrupt handler
  5476. SeeAlso: AX=1117h,AX=DE17h
  5477. --------Q-15DE22-----------------------------
  5478. INT 15 - DESQview v2.26+ - "PROCESSMEM" - GET TASK MEMORY STATUS
  5479.     AX = DE22h
  5480.     DX = segment of task handle
  5481. Return: DX = total amount of memory in paragraphs
  5482.     BX = amount of system memory in paragraphs
  5483.     CX = largest block of system memory available in paragraphs
  5484.     AX = flags
  5485.         bit 0: system memory resides in shared memory
  5486.         bit 1: process's memory is swapped out
  5487.         bit 2: process's system memory is swapped out
  5488. Notes:    if the task handle is a child task, the returned values will be for the
  5489.       process containing the task, rather than the task itself
  5490.     if the process's system memory is swapped out, BX,CX,DX remain
  5491.       unchanged, because the memory usage cannot be determined
  5492. SeeAlso: AX=DE04h,AX=DE05h,AX=DE06h
  5493. --------Q-15DE23-----------------------------
  5494. INT 15 U - DESQview v2.31+ - ???
  5495.     AX = DE23h
  5496.     BX = ??? IRQ number on first PIC?
  5497.     CX = ??? IRQ number on second PIC?
  5498. Return: ???
  5499. Note:    called by QEMM 6.00+
  5500. --------Q-15DE24-----------------------------
  5501. INT 15 - DESQview v2.40+ - "XNEWPROC" - START NEW APPLICATION
  5502.     AX = DE24h
  5503.     BX = length of .DVP data
  5504.     CX = length of ??? string
  5505.     DS:SI -> ??? string
  5506.     ES:DI -> .DVP data (see AX=102Ch)
  5507. Return: BX = segment of task handle??? or 0000h on error
  5508. Note:    this call is similar to AX=102Ch except that it can interpret the
  5509.       extended DVP data
  5510. SeeAlso: AX=102Ch
  5511. --------Q-15DE25-----------------------------
  5512. INT 15 - DESQview v2.40+ - "GETDVPATH" - GET DESQview DIRECTORY
  5513.     AX = DE25h
  5514.     ES:DI -> 67-byte buffer for ASCIZ directory name
  5515. Return: ES:DI buffer filled with directory from which DESQview was started
  5516. BUG:    DV 2.42 does not place a terminating NUL at the end of the directory
  5517.       name, so if the buffer is not cleared to zeros before the call,
  5518.       there is no way to tell where the directory name ends.  This bug
  5519.       has been fixed in DV 2.52 (DV/X 1.02)
  5520. SeeAlso: AX=DE2Eh,INT 21/AH=47h
  5521. --------Q-15DE26-----------------------------
  5522. INT 15 - DESQview v2.40+ - "GETFOREGROUND" - GET KEYBOARD FOCUS
  5523.     AX = DE26h
  5524. Return: BX = segment of handle for task with keyboard focus
  5525. Note:    under DESQview/X, the X server always has the keyboard focus unless a
  5526.       "direct" window is active
  5527. SeeAlso: AX=DE2Fh,INT 2F/AX=DE0Ah
  5528. --------Q-15DE27-----------------------------
  5529. INT 15 - DESQview v2.50+ - "ADDINSTANCEDATA" - ADD PER-TASK SAVE/RESTORE AREA
  5530.     AX = DE27h
  5531.     BX = type
  5532.         0000h process
  5533.         0001h task
  5534.     ES:DI -> list of Instance Item Structures (see below)
  5535. Return: CF clear if successful
  5536.         AX = ???
  5537.         BX = ???
  5538.     CF set on error
  5539.         AX = error code???
  5540.         0004h invalid BX value
  5541. Note:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5542. SeeAlso: INT 2F/AX=DE08h,INT 2F/AX=DE09h
  5543.  
  5544. Format of Instance Item Structure [one element of list]:
  5545. Offset    Size    Description
  5546.  00h    WORD    length of data area DESQview should save and restore on context
  5547.         switches (0000h = end of list)
  5548.  02h    DWORD    pointer to area to be saved/restored
  5549. --------Q-15DE28-----------------------------
  5550. INT 15 U - DESQview v2.50+ - ???
  5551.     AX = DE28h
  5552.     BX = segment of ??? or 0000h for default
  5553.     ???
  5554. Return: ???
  5555. Note:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5556. SeeAlso: AX=DE2Ah
  5557. --------Q-15DE29BX0000-----------------------
  5558. INT 15 U - DESQview v2.50+ - ???
  5559.     AX = DE29h
  5560.     BX = 0000h
  5561.     ???
  5562. Return: CF clear if successful
  5563.         ???
  5564.     CF set on error
  5565. Note:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5566. --------Q-15DE29BX0001-----------------------
  5567. INT 15 U - DESQview v2.50+ - ???
  5568.     AX = DE29h
  5569.     BX = 0001h
  5570.     DX = segment of window handle
  5571. Return: CF clear if successful
  5572.         AX = ???
  5573.         DX = ???
  5574.     CF set on error
  5575. Note:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5576. --------Q-15DE29BX0002-----------------------
  5577. INT 15 U - DESQview v2.50+ - ???
  5578.     AX = DE29h
  5579.     BX = 0002h
  5580.     DX = segment of window handle
  5581. Return: CF clear if successful
  5582.         AX = ???
  5583.         DX = ???
  5584.     CF set on error
  5585. Note:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5586. --------Q-15DE29BX0003-----------------------
  5587. INT 15 U - DESQview v2.50+ - ???
  5588.     AX = DE29h
  5589.     BX = 0003h
  5590.     DX = segment of window handle
  5591. Return: CF clear if successful
  5592.         ???
  5593.     CF set on error
  5594. Note:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5595. --------Q-15DE29BX0004-----------------------
  5596. INT 15 U - DESQview v2.50+ - GET DISPLAY NAME
  5597.     AX = DE29h
  5598.     BX = 0004h
  5599.     CX = size of buffer in bytes
  5600.     DX = segment of window handle
  5601.     ES:DI -> buffer for display name
  5602. Return: CF clear if successful
  5603.         buffer filled with ASCIZ display name (truncated if necessary) or
  5604.           null string if no display
  5605.     CF set on error
  5606. Notes:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5607.     the name ":0" refers to the local display
  5608. --------Q-15DE29BX0005-----------------------
  5609. INT 15 U - DESQview v2.50+ - ???
  5610.     AX = DE29h
  5611.     BX = 0005h
  5612.     ???
  5613. Return: CF clear if successful
  5614.         ???
  5615.     CF set on error
  5616. Note:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5617. --------Q-15DE2A-----------------------------
  5618. INT 15 - DESQview v2.50+ - "DISPATCHINTAFTERDOS" - INTERRUPT ANOTHER TASK
  5619.     AX = DE2Ah
  5620.     BX = segment of handle for task to interrupt or 0000h for caller
  5621.     DX:CX -> interrupt routine
  5622.     BP,SI,DI,DS,ES as required by interrupt routine
  5623. Return: nothing
  5624. Notes:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5625.     this call is the same as AX=DE20h except that it will delay
  5626.       interrupting the specified task until after it has exited DOS
  5627. SeeAlso: AX=1021h,AX=DE20h
  5628. --------Q-15DE2B-----------------------------
  5629. INT 15 - DESQview v2.50+ - "OBJNEXT" - TRAVERSE OBJECT LIST
  5630.     AX = DE2Bh
  5631.     ES:DI -> starting object
  5632.         0000h:0000h for first object in list???
  5633. Return: AX = status
  5634.         0000h successful
  5635.         ES:DI -> next object of same type (window/non-window)
  5636.         0001h failed (ES:DI was not a valid handle)
  5637. Notes:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5638.     there are two separate lists, one for window/task objects and one
  5639.       for all other objects
  5640. SeeAlso: AX=1016h,AX=DE2Ah,AX=DE2Ch
  5641. --------Q-15DE2C-----------------------------
  5642. INT 15 - DESQview v2.50+ - "WININFO" - GET WINDOW INFORMATION
  5643.     AX = DE2Ch
  5644.     DX = window information format version (0100h for DESQview 2.5x)
  5645.     BX = segment of window handle or 0000h for default
  5646.     ES:DI -> buffer for window information (see below)
  5647. Return: AX = status
  5648.         0000h successful
  5649. Note:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5650. SeeAlso: AX=1000h,AX=1016h,AX=DE01h,AX=DE2Bh
  5651.  
  5652. Format of window information:
  5653. Offset    Size    Description
  5654.  00h    BYTE    task flag: 00h window, 01h task
  5655.  01h    BYTE    process number if owner task
  5656.         00h if non-owner task
  5657.  02h    WORD    segment of owner's handle, 0000h if orphaned
  5658.  04h    WORD    mapping context (see AX=1016h)
  5659.  06h    BYTE    task status (see below)
  5660.  07h    BYTE    unused
  5661.  08h    WORD    status bits (see below)
  5662.  0Ah    BYTE    01h if foreground-only window
  5663.  
  5664. Values for task status:
  5665.  00h "Waiting" waiting for input
  5666.  01h "Idle" keyboard poll limit reached
  5667.  03h same as 01h
  5668.  04h "Pausing" INT 15/AX=1000h pause called
  5669.  04h DV/X direct: user did something to allow task switch
  5670.  05h "ModeChg" video mode about to be changed
  5671.  06h "ModeNtf" notify that video mode changed
  5672.  07h "MoniCh" requested change to other monitor
  5673.  08h "StartPgm" control relinquished to start new process
  5674.  09h "MgrCan" made window manager CANCEL command
  5675.  0Ah "Slicing" time slice expired
  5676.  0Bh "Exit DOS" notify on DOS calls
  5677.  0Ch "Enter DOS" process is re-entering DOS
  5678.  0Dh "Terminate" INT 21/AH=4Ch or task freed
  5679.  0Eh "BrkNxt" Control-Break pressed
  5680.  0Fh "MgrCol" keyboard focus taken away
  5681.  10h "PgmInt" interrupted by API call from another task
  5682.  11h "BldOpen" call to INT 15/AX=DE01h
  5683.  
  5684. Bitfields for status bits:
  5685.  bit 0    DESQview process
  5686.  bit 1    process swapped out
  5687.  bit 2    process is resized direct window (suspended)
  5688.  bit 3    process suspended itself
  5689.  bit 4    user suspended process
  5690.  bit 5    process is being created
  5691.  bit 6    task is freeing another task
  5692. --------Q-15DE2D-----------------------------
  5693. INT 15 U - DESQview v2.50+ - GET/SET SOCKET HANDLER
  5694.     AX = DE2Dh
  5695.     CX = direction
  5696.         FFFFh set socket handler
  5697.         DX:BX -> FAR function for socket interface
  5698.             must be of the format described under INT 63"DESQview"
  5699.         other get socket handler
  5700.         Return: DX:BX -> socket handler
  5701. Notes:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5702.     the "set" subfunction is normally called only by SOCKET.DVR
  5703. SeeAlso: AX=DE2Eh,INT 63"DESQview"
  5704. --------Q-15DE2E-----------------------------
  5705. INT 15 U - DESQview v2.50+ - SOCKET API
  5706.     AX = DE2Eh
  5707.     DX:BX -> socket record or 0000h:0000h to create a new socket record
  5708. Return: CX = size of socket record in bytes
  5709.     DX:BX -> socket record which was used
  5710. Notes:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  5711.     socket records are allocated from common memory
  5712.     for Unix compatibility, each socket and connection on a socket is
  5713.       allocated a DOS file handle (referencing an SFT for NUL) which is
  5714.       used on various calls to specify which of possibly multiple
  5715.       connections is to be operated upon
  5716. SeeAlso: AX=DE2Dh,INT 61/AX=0001h"VINES",INT 63"DESQview"
  5717.  
  5718. Format of socket record:
  5719. Offset    Size    Description
  5720.  00h    WORD    signature F0ADh
  5721.  02h    WORD    function number
  5722.         0000h initialize socket???
  5723.         0001h "gethostname"
  5724.         0002h "ioctl" check for input
  5725.         0003h "sleep" delay for specified period
  5726.         0004h "htons" convert word to network (big-endian) byte order
  5727.         0005h "select"
  5728.         0006h "bsd_close"/"so_close" close socket
  5729.         0007h NOP
  5730.         0008h "connect" initiate connection on socket
  5731.         0009h "recv"/"recvfrom" read from socket
  5732.         000Ah "socket"
  5733.         000Bh ???
  5734.         000Ch "gethostbyname"
  5735.         000Dh "send"/"sendto" write to socket
  5736.         000Eh ??? (does something to all connections for process)
  5737.         000Fh "getpid" get process identifier
  5738.         0010h "gettimeofday"
  5739.         0011h "bind" assign name to socket
  5740.         0012h "listen" listen for connections on socket
  5741.         0013h "accept" accept connection on socket
  5742.         0014h connect to X server
  5743.         0015h "gethostbyaddr" get host information for an address
  5744.         0016h "getprotobyname"
  5745.         0017h "getprotobynumber"
  5746.         0018h "getservbyname"
  5747.         0019h "getservbyport"
  5748.         001Ah "getsockname" determine name bound to socket
  5749.         001Bh "getpeername" get name of connected peer
  5750.         001Ch "getsockopt"/"setsockopt"
  5751.         001Dh "so_exit"     close all sockets for calling process
  5752.         001Eh "issock" determine whether file handle references socket
  5753.         001Fh "so_attach" reattach previously detached socket
  5754.         0020h "so_detach" temporarily detach socket
  5755.         0021h get DESQview directory
  5756.         0022h "NewProc" start new application (see AX=102Ch)
  5757.         0023h "so_linkup"
  5758.         0024h canonicalize filename
  5759.         0025h indirect INT 15h call
  5760.         0026h Network Manager interface
  5761.         0027h "so_unlink"    close connection from "so_linkup"
  5762.         0028h "raisepriority"
  5763.         0029h "lowerpriority"
  5764.         002Ah ???
  5765.         FFFFh "NetExit" (appears to be a NOP)
  5766.  04h    WORD    returned error code (see below)
  5767.  06h    WORD    maximum message size??? (usually 0400h)
  5768.  08h    WORD    PSP segment to use or 0000h if socket not valid
  5769.  0Ah    WORD    scratch space (JFT size)
  5770.  0Ch    DWORD    scratch space (JFT address)
  5771.  10h    DWORD    mailbox handle (initialized by function 0000h)
  5772.  14h    DWORD    timer object handle (initialized by function 0000h)
  5773. ---function 0000h---
  5774.  18h    WORD    (return) ???
  5775. ---function 0001h---
  5776.  18h    WORD    (return) status???
  5777.  1Ah 128 BYTEs    (return) ASCIZ hostname (empty string if not on network)
  5778.  9Ah    WORD    maximum length of hostname to return
  5779. ---function 0002h---
  5780.  18h    WORD    (return) status
  5781.  1Ah    WORD    socket's file handle
  5782.  1Ch    WORD    IOCTL function
  5783.         05h "FIONREAD" determine available input
  5784.         06h "FIONBIO" set blocking state of socket
  5785.  1Eh    WORD    (return, subfn 05h) number of bytes available for reading
  5786.         (call, subfn 06h) 0000h blocking, nonzero nonblocking
  5787. ---function 0003h---
  5788.  18h  2 BYTEs    unused
  5789.  1Ah    WORD    delay time in seconds
  5790. ---function 0004h---
  5791.  18h    WORD    (return) result in network (big-endian) byte order
  5792.  1Ah    WORD    value to convert to network byte order
  5793. ---function 0005h---
  5794.  18h    WORD    (return) number of handles meeting the specified conditions???
  5795.  1Ah    WORD    number of file handles in each bitset???
  5796.  1Ch    DWORD    bitset of socket handles to check for readability???
  5797.  20h    DWORD    bitset of socket handles to check for writability???
  5798.  24h    DWORD    bitset of socket handles to check for errors???
  5799.  28h    WORD    timeout in ??? or 0000h to block until some socket ready
  5800.  2Ah    DWORD    ???
  5801.  2Eh    DWORD    ???
  5802. ---function 0006h---
  5803.  18h    WORD    (return) status: 0000h if successful, FFFFh on error
  5804.  1Ah    WORD    socket's file handle
  5805. ---function 0008h---
  5806.  18h    WORD    (return) status: 0000h if successful, FFFFh on error
  5807.  1Ah    WORD    socket's file handle
  5808.  1Ch    WORD    0001h if socket name specified, 0000h if not
  5809.  1Eh    WORD    length of socket name
  5810.  20h  N BYTEs    name of socket to which to connect
  5811. ---function 0009h---
  5812.  18h    WORD    (return) number of bytes actually read, 0000h if connection
  5813.             closed, or FFFFh on error
  5814.  1Ah    WORD    socket's file handle
  5815.  1Ch    WORD    number of bytes to read
  5816.  1Eh    WORD    flags
  5817.  20h    WORD    0000h if no source address desired
  5818.         0001h if source address is to be stored (datagram sockets)
  5819.  22h    WORD    length of source address
  5820.  24h 110 BYTEs    source address
  5821.  92h 1K BYTEs    buffer for data to be read
  5822. ---function 000Ah---
  5823.  18h    WORD    (return) socket's file handle or FFFFh on error
  5824.  1Ah    WORD    address family (0001h,0002h)
  5825.  1Ch    WORD    socket type
  5826.  1Eh    WORD    protocol
  5827. ---function 000Bh---
  5828.  18h    WORD    (return) 0001h if ??? or FFFFh on error
  5829.  1Ah    WORD    socket's file handle
  5830.  1Eh    WORD    (call) ???
  5831. ---function 000Ch---
  5832.  18h 128 BYTEs    buffer containing ASCIZ hostname
  5833.         special case if empty string or "unix"
  5834.  98h    ???    'struct hostent' ???
  5835.  A2h    ???    (return) ???
  5836. ---function 000Dh---
  5837.  18h    WORD    (return) number of bytes actually written or FFFFh on error
  5838.  1Ah    WORD    socket's file handle
  5839.  1Ch    WORD    number of bytes to write
  5840.  1Eh    WORD    number of bytes to follow in subsequent writes???
  5841.  20h    WORD    flags
  5842.  22h    WORD    0000h if no destination specified, 0001h if destination present
  5843.  24h    WORD    ???
  5844.  26h    WORD    length of destination address
  5845.  28h 110 BYTEs    destination address
  5846.  96h 1K BYTEs    buffer containing data to be written
  5847. ---function 000Eh---
  5848.  no additional fields
  5849. ---function 000Fh---
  5850.  18h    DWORD    (return) DESQview task handle of calling process
  5851. ---function 0010h---
  5852.  18h    DWORD    (return) current time
  5853.  1Ch    DWORD    (return) ???
  5854. ---function 0011h---
  5855.  18h    WORD    (return) status: 0000h if successful, FFFFh on error
  5856.  1Ah    WORD    socket's file handle
  5857.  1Ch    WORD    length of name
  5858.  1Eh  N BYTEs    buffer for socket name
  5859. ---function 0012h---
  5860.  18h    WORD    (return) status: 0000h if successful, FFFFh on error
  5861.  1Ah    WORD    socket's file handle
  5862.  1Ch    WORD    maximum backlog of pending connections allowed on socket
  5863. ---function 0013h---
  5864.  18h    WORD    (return) file handle for new connection or FFFFh on error
  5865.  1Ah    WORD    listen()ing socket's file handle
  5866.  1Ch    WORD    (call) length of buffer for connecting entity's address
  5867.         (return) actual length of address
  5868.  1Eh  N BYTEs    buffer for connecting entity's address
  5869. ---function 0014h---
  5870.  18h    WORD    (return) socket's file handle or FFFFh on error
  5871.  1Ah  4 BYTEs    (return) ???
  5872.  1Eh    WORD    (return) ???
  5873.  20h    WORD    (return) ???
  5874.  22h 256 BYTEs    ASCIZ X display name
  5875. 122h    ???
  5876. ---function 0015h---
  5877.  18h    WORD    (call) type of address??? (test for 0001h seen)
  5878.  1Ah    WORD    (call) length of buffer for host address
  5879.  1Ch 110 BYTEs    buffer containing host address
  5880.  8Ah    WORD    (return) offset of official host name???
  5881.  8Ch    WORD    (return) offset of alias list???
  5882.  8Eh    WORD    (return) address type???
  5883.  90h    WORD    (return) length of an address in bytes???
  5884.  92h    WORD    (return) offset of address???
  5885.  9Ah  N BYTEs    (return) ??? buffer for hostname, alias list, and host address
  5886. ---function 0016h---
  5887.  18h    ???    buffer for protocol name???
  5888.  98h    ???
  5889. ---function 0017h---
  5890.  18h    WORD    (call) protocol number???
  5891.  1Ah    WORD    (return) ??? or 0001h
  5892. ---function 0018h---
  5893.  18h 128 BYTEs    buffer containing ???
  5894.  98h 128 BYTEs    buffer containing ???
  5895. 118h    WORD    (return) ???
  5896. ---function 0019h---
  5897.  18h    WORD    length of name???
  5898.  1Ah 128 BYTEs    buffer for name???
  5899.  9Ah    WORD    (return) ???
  5900. ---function 001Ah---
  5901.  18h    WORD    (return) 0000h if successful, FFFFh on error
  5902.  1Ah    WORD    socket's file handle
  5903.  1Ch    WORD    (call) length of buffer for socket name
  5904.         (return) actual length of socket name
  5905.  1Eh  N BYTEs    buffer for socket name
  5906. ---function 001Bh---
  5907.  18h    WORD    (return) status: 0000h if successful, FFFFh on error
  5908.  1Ah    WORD    socket's file handle
  5909.  1Ch    WORD    (call) size of buffer for name
  5910.         (return) actual size of name
  5911.  1Eh  N BYTEs    buffer for peer's name
  5912. ---function 001Ch---
  5913.  18h    WORD    (return) status: 0000h if successful, FFFFh on error
  5914.  1Ah    WORD    direction: 0000h to get, 0001h to set
  5915.  1Ch    WORD    socket's file handle
  5916.  1Eh    WORD    option level
  5917.  20h    WORD    option name
  5918.  22h    WORD    (call) length of buffer for option value
  5919.         (return) actual length of option value
  5920.  24h  N BYTEs    buffer for option value
  5921. ---function 001Dh---
  5922.  no additional fields
  5923. ---function 001Eh---
  5924.  18h    WORD    (return) status: 0000h ??? or 0001h ???
  5925.  1Ah    WORD    file handle which may or may not be a socket
  5926. ---function 001Fh---
  5927.  18h    WORD    (return) file handle or FFFFh on error
  5928.  1Ah    DWORD    (call) pointer to Socket Context Record (see below) of a
  5929.             previously detached socket
  5930. ---function 0020h---
  5931.  18h    WORD    (return) status: 0000h if successful or FFFFh on error
  5932.  1Ah    WORD    socket's file handle
  5933.  1Ch    DWORD    (return) pointer to Socket Context Record (see below) for
  5934.             the file handle
  5935. ---function 0021h---
  5936.  18h 64 BYTEs    buffer for DESQview startup directory (see AX=DE25h)
  5937. ---function 0022h---
  5938.  18h    DWORD    (return) task handle of new application
  5939.  1Ch    WORD    size of .DVP data
  5940.  1Eh 129 BYTEs    ASCIZ ???
  5941.  9Fh  N BYTEs    .DVP data (see AX=102Ch)
  5942. ---function 0023h---
  5943.  18h    WORD    (return) ??? or FFFFh on error
  5944.  1Ah    WORD    socket's file handle???
  5945. ---function 0024h---
  5946.  18h    WORD    (return) DOS error code (see INT 21/AH=59h)
  5947.             0000h if successful
  5948.  1Ah 129 BYTEs    ASCIZ filename/pathname
  5949. 11Bh 129 BYTEs    ASCIZ canonicalized filename/pathname (see INT 21/AH=60h)
  5950. ---function 0025h---
  5951.  18h    WORD    value of AX
  5952.  1Ah    WORD    value of BX
  5953.  1Ch    WORD    (call) value of CX for call if AH value other than 12h
  5954.         (call) number of stack parameters if AH value is 12h
  5955.         (return) returned CX for calls other than INT 15/AH=12h
  5956.  1Eh    WORD    value of DX
  5957.  20h    WORD    value of DI
  5958.  22h    WORD    value of SI
  5959.  24h    WORD    value of DS
  5960.  26h    WORD    value of ES
  5961.  28h    WORD    (return) value of FLAGS after call
  5962.  2Ah  N DWORDs    (call) stack parameters for INT 15/AH=12h call
  5963.         (return) stack results from INT 15/AH=12h call
  5964. ---function 0026h---
  5965.  18h    WORD    (call) subfunction
  5966.             0004h "so_exit"???
  5967.             0005h "gethostbyname"
  5968.             0006h "gethostname"
  5969.             0009h "socket"
  5970.             000Dh "gethostbyaddr"
  5971.             000Fh "getprotobyname"
  5972.             0010h get protocol name for protocol number
  5973.             0011h "getservbyname"
  5974.             0012h "getservbyport"
  5975.             0013h "getsockname"???
  5976.             0016h ???
  5977.             0017h kill Network Manager
  5978.             0018h "getpeername"???
  5979.             0019h ??? (called by socket function 0000h)
  5980.             001Ah ???
  5981.             001Bh "so_linkup"
  5982.             001Dh get network services
  5983.             001Fh "getpwuid"
  5984.             0020h "getpwnam"
  5985.             0021h "getpwvar"
  5986.             0022h "crypt"
  5987.             0023h "so_unlink"
  5988.             0024h "getlogin"
  5989.             0028h "sethostent"
  5990.             0029h "gethostent"
  5991.             002Ah "soaddhost"
  5992.             002Bh "soupdatehost"
  5993.             002Ch "sodeletehost"
  5994.             002Dh "setservent"
  5995.             002Eh "getservent"
  5996.             002Fh "setpwent"
  5997.             0030h "getpwent"
  5998.             0031h ???
  5999.             0032h ???
  6000.             0033h ???
  6001.             0034h get IP network number
  6002.             0035h ??? (pops up Network Manager window)
  6003.             0037h ???
  6004.             0038h get machine name and IP address
  6005.             0039h ???
  6006.         (return) status???
  6007.  1Ah    WORD    (call) size of parameter data
  6008.         (return) size of returned data
  6009.  1Ch  N BYTEs    (call) parameter data required by call (see below)
  6010.         (return) result data (see below)
  6011. ---function 0027h---
  6012.  18h    WORD    (return) status: 0000h if successful, FFFFh on error
  6013.  1Ah    WORD    socket's file handle
  6014. ---functions 0028h,0029h---
  6015.  18h    WORD    (call) file handle for which to set priority low/high
  6016.             FFFFh to change calling task's priority
  6017. ---function 002Ah---
  6018.  no additional fields
  6019.  
  6020. Format of Function 0026h/Subfunction 000Fh data:
  6021. Offset    Size    Description
  6022.  00h  8 BYTEs    (return) ???
  6023.  
  6024. Format of Function 0026h/Subfunction 0010h data:
  6025. Offset    Size    Description
  6026.  00h  2 BYTEs    (return) ???
  6027.  02h    WORD    (return) protocol number
  6028.  04h    WORD    (call) protocol number for which to get name
  6029.  06h    WORD    (return) ???
  6030.  08h    var    (return) ASCIZ protocol name
  6031.  N    var    (return) ASCIZ protocol name
  6032.  
  6033. Format of Function 0026h/Subfunction 0011h data:
  6034. Offset    Size    Description
  6035.  00h  8 BYTEs    ???
  6036.  08h    var    (return) ASCIZ protocol name
  6037.     var    (return) ASCIZ ??? name
  6038.     var    (return) ASCIZ ??? name
  6039.  
  6040. Format of Function 0026h/Subfunction 0012h data:
  6041. Offset    Size    Description
  6042.  00h  8 BYTEs    (return) ???
  6043.  
  6044. Format of Function 0026h/Subfunction 0013h data:
  6045. Offset    Size    Description
  6046.  00h 116 BYTEs    (return) ???
  6047.  
  6048. Format of Function 0026h/Subfunction 0016h data:
  6049. Offset    Size    Description
  6050.  00h  4 BYTEs    (return) ???
  6051.  
  6052. Format of Function 0026h/Subfunction 0018h data:
  6053. Offset    Size    Description
  6054.  00h 116 BYTEs    (return) ???
  6055.  
  6056. Format of Function 0026h/Subfunction 0019h data:
  6057. Offset    Size    Description
  6058.  00h  4 BYTEs    (return) ???
  6059.  04h    DWORD    (return) task handle of ???
  6060.  
  6061. Format of Function 0026h/Subfunction 001Ah data:
  6062. Offset    Size    Description
  6063.  00h 38 BYTEs    (return) ???
  6064.  
  6065. Format of Function 0026h/Subfunction 001Bh data:
  6066. Offset    Size    Description
  6067.  00h 10 BYTEs    (return) ???
  6068.  
  6069. Format of Function 0026h/Subfunction 001Dh return data [array]:
  6070. Offset    Size    Description
  6071.  00h    WORD    ??? or FFFFh if end of array
  6072.  02h  7 BYTEs    ???
  6073.  09h 27 BYTEs    ASCIZ name of service
  6074.  
  6075. Format of Function 0026h/Subfunction 0024h return data:
  6076. Offset    Size    Description
  6077.  00h    var    ASCIZ username
  6078.  
  6079. Format of Function 0026h/Subfunction 0030h data:
  6080. Offset    Size    Description
  6081.  00h    WORD    (call) UID or 0000h for current user
  6082.         (return) ???
  6083.  02h    WORD    (return) UID
  6084.  04h  6 BYTEs    (return) ???
  6085.  0Ah    var    (return) ASCIZ username
  6086.     var    (return) ASCIZ encrypted password
  6087.     var    (return) ASCIZ initial ("home") directory
  6088.  
  6089. Format of Function 0026h/Subfunction 0034h data:
  6090. Offset    Size    Description
  6091.  00h  1-3 BYTEs    IP network number of caller's machine (low byte first)
  6092.  
  6093. Format of Function 0026h/Subfunction 0038h return data:
  6094. Offset    Size    Description
  6095.  00h    BYTE    ???
  6096.  01h  4 BYTEs    IP address
  6097.  05h    var    ASCIZ machine name
  6098.     ???
  6099.  
  6100. Values for error code:
  6101.  0000h successful
  6102.  0009h "BADF" bad file handle
  6103.  000Ch "ENOMEM" out of memory
  6104.  000Eh "EFAULT" bad address
  6105.  0016h "EINVAL" invalid argument
  6106.  0018h "EMFILE" too many open files
  6107.  0020h "EPIPE" ??? broken pipe
  6108.  0023h "EWOULDBLOCK" operation cannot be completed at this time
  6109.  0024h "EINPROGRESS" operation now in progress
  6110.  0026h "ENOTSOCK" socket invalid
  6111.  0028h "EMSGSIZE" message too long to send atomically
  6112.  002Ch "ESOCKTNOSUPPORT" socket type not supported
  6113.  002Fh "EAFNOSUPPORT" address family not supp. by protocol fam.
  6114.  0031h "EDOM" argument too large
  6115.  0038h "EISCONN" socket is already connected
  6116.  0039h "ENOTCONN" socket is not connected
  6117.  
  6118. Format of Socket Context Record:
  6119. Offset    Size    Description
  6120.  00h    DWORD    pointer to next Socket Context Record, 0000h:0000h if last
  6121.  04h    WORD    SFT index for socket, 00FFh if not connected, FFFFh if detached
  6122.  06h    WORD    PSP segment of owner or 0000h
  6123.  08h    WORD    mapping context of owning window (see AX=1016h)
  6124.  0Ah  2 BYTEs    ???
  6125.  0Ch    WORD    address family
  6126.  0Eh    WORD    socket type
  6127.  10h    WORD    protocol
  6128.  12h    WORD    socket state
  6129.         0001h created
  6130.         0002h bound
  6131.         0003h listening???
  6132.         0005h connected
  6133.  14h    DWORD    timer object handle
  6134.  18h    DWORD    object handle (mailbox???)
  6135.  1Ch    DWORD    object handle of parent of above object or 0000h:0000h
  6136.  20h    DWORD    pointer to ??? or 0000h
  6137.  24h  6 BYTEs    ???
  6138.  2Ah    WORD    file handle for socket or FFFFh
  6139.  2Ch  2 BYTEs    ???
  6140.  2Eh    WORD    nonzero if socket nonblocking
  6141. ---network connections only---
  6142.  30h  2 BYTEs    ???
  6143.  32h    WORD    ???
  6144.  34h  4 BYTEs    (big-endian) IP address of remote
  6145.  38h  6 BYTEs    ???
  6146. --------Q-15DE2F-----------------------------
  6147. INT 15 - DESQview v2.50+ - "VIDEONOTIFY" - HAS DIRECT WINDOW BEEN ACTIVE?
  6148.     AX = DE2Fh
  6149. Return: BX = status
  6150.         0001h keyboard focus has been given to a direct window since the
  6151.         last call
  6152.         0000h if not
  6153. Notes:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  6154.     Quarterdeck states that this call will not be available under future
  6155.       versions of DESQview Classic
  6156. --------Q-15DE30-----------------------------
  6157. INT 15 - DESQview v2.50+ - "GETDVXVERSION" - GET DESQview/X VERSION
  6158.     AX = DE30h
  6159. Return: BX = version (BH=major, BL=minor) or 0000h if not DESQview/X
  6160. Notes:    DESQview 2.50-2.52 are distributed as part of DESQview/X v1.0x.
  6161.     you must first check the DESQview version to verify that it is 2.50 or
  6162.       greater
  6163. SeeAlso: INT 21/AH=2Bh/CX=4445h
  6164. --------Q-15DE31-----------------------------
  6165. INT 15 - DESQview/X v1.10 - ???
  6166.     AX = DE31h
  6167.     CX = ???
  6168.         0000h ???
  6169.         nonzero ???
  6170.     ???
  6171. Return: ???
  6172. --------b-15E00F-----------------------------
  6173. INT 15 - Compaq Systempro - MULTIPROCESSOR DISPATCH
  6174.     AX = E00Fh
  6175.     ES:BX -> start of 2nd processor's execution
  6176. Return: AL = 0Fh successful
  6177.        = 00h failure    
  6178. SeeAlso: AX=E10Eh,AX=E200h
  6179. --------b-15E10E-----------------------------
  6180. INT 15 - Compaq Systempro - MULTIPROCESSOR END-OF-DISPATCH
  6181.     AX = E10Eh
  6182.     ES:BX -> start of 2nd processor's execution
  6183. Return: AL = 0Fh successful (halted)
  6184.        = 00h failure (not halted)
  6185. SeeAlso: AX=E00Fh,AX=E200h
  6186. --------b-15E200-----------------------------
  6187. INT 15 - Compaq Systempro - MULTIPROCESSOR AVAILABLE
  6188.     AX = E200h
  6189. Return: AX = 8000h if 2nd processor available
  6190. SeeAlso: AX=E00Fh,AX=E10Eh
  6191. ----------15E4-------------------------------
  6192. INT 15 - ???
  6193.     AH = E4h
  6194.     AL = subfunction
  6195.         21h, 89h, 8Ah, 8Bh called by 386MAX v6.01
  6196.     DL = ???
  6197. Return: ???
  6198. --------m-15F200CX454D-----------------------
  6199. INT 15 - Tandon memory mapper - Tandon MAPPER HARDWARE INITIALISATION CHECK ???
  6200.     AX = F200h
  6201.     CX = 454Dh
  6202. Return: CF clear if hardware already initialised
  6203.         BX = upper RAM areas in use
  6204.         bit 0: C000-C3FF
  6205.         bit 1: C400-C7FF
  6206.         ...
  6207.         bit 11: EC00-EFFF
  6208.     CF set if hardware not initialised yet
  6209. ---------------------------------------------
  6210.